Skip to content

Struct command::object::Activity

zaun_community_protocol::command::object::Activity · Struct

pub struct Activity { … }

An activity.

The kind.

1–128 scalars: the game, song, show, …

≤ 128 scalars: e.g. the track or the level.

≤ 128 scalars: e.g. the artist or the party size.

streaming only: where to watch (https://, the the protocol link rules; opened only after the reader confirms).

When it started, ms since the epoch.

custom only: a Unicode emoji.

pub fn check(&self) -> Result<(), BodyError>

The state-free rules.

The first violated rule, with the field named activity.<field>.

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

Full rustdoc page