Struct command::signal::Presence
zaun_community_protocol::command::signal::Presence · Struct
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
Section titled “Fields”status: Option<PresenceStatus>
Section titled “status: Option<PresenceStatus>”The member’s presence.
activity: Option<Activity>
Section titled “activity: Option<Activity>”What the member is doing (absent: nothing). Dropped when status is invisible.
viewing: Patch<ChannelId>
Section titled “viewing: Patch<ChannelId>”The channel the client is viewing (typing signals go only to viewers); null = none.
Trait implementations
Section titled “Trait implementations”Body, Clone, Debug, Default, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq, Validate