pub struct Session {
pub id: Uuid,
pub ceremony_type: String,
pub bag: Map<String, Value>,
pub render: RenderHints,
pub created_at: Instant,
pub last_active: Instant,
pub complete: bool,
}Expand description
A live ceremony session - just a bag of key-value pairs plus metadata.
There is no stage index, no stage name, no progress counter.
The CeremonyRules derive everything from the bag contents.
Fields§
§id: UuidUnique session identifier (UUIDv7).
ceremony_type: StringCeremony type identifier string (e.g. “init”, “join”).
bag: Map<String, Value>The accumulated key-value data. Rules read and write this.
render: RenderHintsClient render hints (from the most recent request).
created_at: InstantMonotonic timestamp of creation.
last_active: InstantMonotonic timestamp of last activity.
complete: boolWhether this ceremony has completed.
Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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
Mutably borrows from an owned value. Read more