# Struct command::signal::Presence

> `signal.presence`: `{ status?, activity?, viewing? }`, at least one of `status` and `viewing`.

`zaun_community_protocol::command::signal::Presence` · Struct

```rust
pub struct Presence { … }
```

`signal.presence`: `{ status?, activity?, viewing? }`, at least one of `status`
and `viewing`.

SPEC: the protocol writes the body as `{ status, activity? }` and later as
`signal.presence { viewing }` (the client says which channel it views). Both forms are
accepted, so `status` is optional here; a body with neither `status` nor `viewing` is a
bad request. `viewing: null` means "no channel"; `viewing` is never forwarded to other
members.

## Fields

### `status: Option<PresenceStatus>`

The member's presence.

### `activity: Option<Activity>`

What the member is doing (absent: nothing). Dropped when `status` is `invisible`.

### `viewing: Patch<ChannelId>`

The channel the client is viewing (typing signals go only to viewers); `null` = none.

## Trait implementations

`Body`, `Clone`, `Debug`, `Default`, `Deserialize<'de>`, `Eq`, `PartialEq`, `Serialize`, `StructuralPartialEq`, `Validate`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/signal/struct.Presence.html)
