Skip to content

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.

The member’s presence.

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

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

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

Full rustdoc page