pub enum Change {
Show 24 variants
Posted(Box<Posted>),
JoinedThread(Member),
LeftThread(Member),
Claimed(Claimed),
Released(Released),
LeadSet(Member),
SettingChanged(SettingChanged),
SessionForgotten(Forgotten),
SessionStarted(SessionStarted),
PauseSet(PauseSet),
RiffMade(RiffMade),
PersonJoined(PersonJoined),
MemberInvited(Email),
MemberRemoved(Email),
AdminSet(AdminSet),
OwnerSet(OwnerSet),
OwnerAsked(OwnerAsked),
OwnerDenied(Email),
SigninsEnded(SigninsEnded),
ItemHeld(ItemHeld),
ItemFreed(ItemFreed),
PlanSet(PlanSet),
PlanEnded(PlanEnded),
NotesSet(NotesSet),
}Expand description
What happened.
Variants§
Posted(Box<Posted>)
A message, with its seq in its thread and the sessions that it woke.
JoinedThread(Member)
A session joined a thread.
LeftThread(Member)
A session left a thread. It is no longer the lead there.
Claimed(Claimed)
A session took a claim. It replaces the old holder.
Released(Released)
A claim is free. The record of the last claim of a worker, made by its own release, says that the worker must clear its context.
LeadSet(Member)
A session became the lead of its user in a repository thread.
SettingChanged(SettingChanged)
A setting of the riff changed.
SessionForgotten(Forgotten)
A session had no sign of life for SESSION_EXPIRY. The state
drops it: its read cursors, its memberships, its claims, its lead,
and each direct thread whose two sessions are gone.
SessionStarted(SessionStarted)
A session started, or came with no new start. The record has the worker mark of the session (01M3X9X9M079WGFPJZHNXH9VEP).
PauseSet(PauseSet)
A pause is set or ended: the pause of the whole riff, or the pause of one repository (01M3XAHZG26ECNARX35JD73YXJ).
RiffMade(RiffMade)
The riff has its ID. It is the first record of a new log.
PersonJoined(PersonJoined)
An email signed in for the first time, and holds its USER.
MemberInvited(Email)
An email is a member of the riff.
MemberRemoved(Email)
An email is no member of the riff. Each sign-in of its USER from before this record is ended.
AdminSet(AdminSet)
An email is an admin that the owner made, or it is not.
OwnerSet(OwnerSet)
An email is the owner. With no email, the owner is gone, and the riff has no owner. The request for the owner role ends.
OwnerAsked(OwnerAsked)
An admin asks for the owner role.
OwnerDenied(Email)
The owner keeps the owner role that an admin asked for.
SigninsEnded(SigninsEnded)
Each sign-in of a USER from before this record is ended.
ItemHeld(ItemHeld)
A lead holds an item, with a reason: no worker can claim it. A second record for the same item replaces the reason. New in 1.1.0.
ItemFreed(ItemFreed)
The hold of an item ends. New in 1.1.0.
PlanSet(PlanSet)
The plan of a repository thread: it replaces the plan of the thread. New in 1.3.0.
PlanEnded(PlanEnded)
The server forgets the plan of a repository thread. The holds stay. New in 1.3.0.
NotesSet(NotesSet)
The notes of the lead of a user in a repository thread: the full text replaces the old text, and the old text stays in the history (01M59258K3TYR09HC4AWHWZPEX).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Change
impl<'de> Deserialize<'de> for Change
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Change
impl JsonSchema for Change
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl Eq for Change
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.