pub struct CeremonyComposition { /* private fields */ }Expand description
One ceremony this system composes, referenced and never owned.
The pin is the whole point: name and version say which definition, the digest says which bytes, and a republished version is therefore a different pin rather than a silent change of what the system does.
Implementations§
Source§impl CeremonyComposition
impl CeremonyComposition
pub fn new( id: SystemCeremonyId, pin: DefinitionPin, purpose: SystemPurpose, depends_on: impl IntoIterator<Item = SystemCeremonyId>, activation: CeremonyActivation, role_bindings: impl IntoIterator<Item = (RoleId, ParticipantId)>, inputs_from: impl IntoIterator<Item = (InputName, CeremonyOutputRef)>, ) -> Self
pub const fn id(&self) -> &SystemCeremonyId
pub const fn pin(&self) -> &DefinitionPin
pub const fn purpose(&self) -> &SystemPurpose
pub const fn depends_on(&self) -> &BTreeSet<SystemCeremonyId>
pub const fn activation(&self) -> &CeremonyActivation
Sourcepub const fn role_bindings(&self) -> &BTreeMap<RoleId, ParticipantId>
pub const fn role_bindings(&self) -> &BTreeMap<RoleId, ParticipantId>
Which logical participant sits in each seat the definition declares.
pub const fn inputs_from(&self) -> &BTreeMap<InputName, CeremonyOutputRef>
Sourcepub fn predecessors(&self) -> BTreeSet<&SystemCeremonyId>
pub fn predecessors(&self) -> BTreeSet<&SystemCeremonyId>
Every composition this one waits for: its declared dependencies plus the one its loop runs back to.
Trait Implementations§
Source§impl Clone for CeremonyComposition
impl Clone for CeremonyComposition
Source§impl Debug for CeremonyComposition
impl Debug for CeremonyComposition
Source§impl<'de> Deserialize<'de> for CeremonyComposition
impl<'de> Deserialize<'de> for CeremonyComposition
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CeremonyComposition
Source§impl PartialEq for CeremonyComposition
impl PartialEq for CeremonyComposition
Source§impl Serialize for CeremonyComposition
impl Serialize for CeremonyComposition
impl StructuralPartialEq for CeremonyComposition
Auto Trait Implementations§
impl Freeze for CeremonyComposition
impl RefUnwindSafe for CeremonyComposition
impl Send for CeremonyComposition
impl Sync for CeremonyComposition
impl Unpin for CeremonyComposition
impl UnsafeUnpin for CeremonyComposition
impl UnwindSafe for CeremonyComposition
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