Skip to main content

CeremonySummary

Struct CeremonySummary 

Source
pub struct CeremonySummary {
    pub ceremony_id: String,
    pub definition_name: String,
    pub definition_version: String,
    pub definition_digest: Option<String>,
    pub current_state: String,
    pub participants: Vec<CeremonyParticipant>,
    pub interventions: Vec<InterventionView>,
    pub context: BTreeMap<String, Value>,
    pub recollection: Option<RecollectionView>,
    pub created_at_millis: i64,
    pub updated_at_millis: i64,
    pub completed_at_millis: Option<i64>,
}
Expand description

One ceremony instance, as a consumer sees it.

A projection, never the aggregate. The instance inside the engine gains fields as the domain needs them; a consumer that read it directly would inherit each one as a contract. Everything here is plain data a consumer can hold, log or map into its own vocabulary without importing the domain.

Fields§

§ceremony_id: String§definition_name: String§definition_version: String§definition_digest: Option<String>

The digest of the published definition this instance was bound to, hex encoded — or absent for an instance started from an unpublished draft. Present, it makes “this exact procedure ran” provable rather than a promise about a name.

§current_state: String§participants: Vec<CeremonyParticipant>§interventions: Vec<InterventionView>

The table’s conversation: every intervention raised, with its answers.

§context: BTreeMap<String, Value>

The context the instance was started with. This is where a consuming product keeps its own reference to its own aggregate — the engine carries the keys without knowing what they mean.

§recollection: Option<RecollectionView>

What earlier sessions in this ceremony’s memory scope decided, as this one was told when it opened. Absent when it was told nothing.

§created_at_millis: i64§updated_at_millis: i64§completed_at_millis: Option<i64>

Trait Implementations§

Source§

impl Clone for CeremonySummary

Source§

fn clone(&self) -> CeremonySummary

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CeremonySummary

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CeremonySummary

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for CeremonySummary

Source§

impl PartialEq for CeremonySummary

Source§

fn eq(&self, other: &CeremonySummary) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CeremonySummary

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CeremonySummary

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.