pub struct CeremonyLineage { /* private fields */ }Implementations§
Source§impl CeremonyLineage
impl CeremonyLineage
pub fn new( root_id: CeremonyId, parent_id: CeremonyId, group_id: ChildGroupId, position: ChildPosition, depth: ChildDepth, remaining_depth: ChildDepthBudget, ) -> Result<Self, DomainError>
pub fn root_id(&self) -> &CeremonyId
pub fn parent_id(&self) -> &CeremonyId
pub fn group_id(&self) -> &ChildGroupId
pub const fn position(&self) -> ChildPosition
pub const fn depth(&self) -> ChildDepth
pub const fn remaining_depth(&self) -> ChildDepthBudget
pub fn validate(&self) -> Result<(), DomainError>
Trait Implementations§
Source§impl Clone for CeremonyLineage
impl Clone for CeremonyLineage
Source§impl Debug for CeremonyLineage
impl Debug for CeremonyLineage
Source§impl<'de> Deserialize<'de> for CeremonyLineage
impl<'de> Deserialize<'de> for CeremonyLineage
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 CeremonyLineage
Source§impl PartialEq for CeremonyLineage
impl PartialEq for CeremonyLineage
Source§impl Serialize for CeremonyLineage
impl Serialize for CeremonyLineage
impl StructuralPartialEq for CeremonyLineage
Auto Trait Implementations§
impl Freeze for CeremonyLineage
impl RefUnwindSafe for CeremonyLineage
impl Send for CeremonyLineage
impl Sync for CeremonyLineage
impl Unpin for CeremonyLineage
impl UnsafeUnpin for CeremonyLineage
impl UnwindSafe for CeremonyLineage
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