pub struct SuccessionPlan { /* private fields */ }Expand description
The whole of a handoff, sealed in the predecessor before anything is opened.
It carries plan identity, the successor’s derived id, the definition the successor runs, what the successor starts with, what happens to every outstanding claim and what the successor does about the ledger. One fact rather than several, because a partial handoff — a successor named with no dispositions, dispositions with no successor — is not a state this engine should be able to be in.
Implementations§
Source§impl SuccessionPlan
impl SuccessionPlan
pub const fn new( plan_id: IdempotencyKey, successor_id: CeremonyId, successor_definition: DefinitionPin, carried: Vec<CarriedEvidence>, dispositions: Vec<ClaimDisposition>, budget: BudgetDisposition, planned_by: AuditActorId, planned_at: OffsetDateTime, ) -> Self
pub const fn plan_id(&self) -> &IdempotencyKey
pub const fn successor_id(&self) -> &CeremonyId
pub const fn successor_definition(&self) -> &DefinitionPin
pub fn carried(&self) -> &[CarriedEvidence]
pub fn dispositions(&self) -> &[ClaimDisposition]
pub const fn budget(&self) -> BudgetDisposition
pub const fn planned_by(&self) -> &AuditActorId
pub const fn planned_at(&self) -> OffsetDateTime
Sourcepub fn disposition_for(&self, step_id: &StepId) -> Option<&ClaimDisposition>
pub fn disposition_for(&self, step_id: &StepId) -> Option<&ClaimDisposition>
The disposition this plan holds for one step, if it holds one.
Trait Implementations§
Source§impl Clone for SuccessionPlan
impl Clone for SuccessionPlan
Source§impl Debug for SuccessionPlan
impl Debug for SuccessionPlan
Source§impl<'de> Deserialize<'de> for SuccessionPlan
impl<'de> Deserialize<'de> for SuccessionPlan
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 SuccessionPlan
Source§impl PartialEq for SuccessionPlan
impl PartialEq for SuccessionPlan
Source§impl Serialize for SuccessionPlan
impl Serialize for SuccessionPlan
impl StructuralPartialEq for SuccessionPlan
Auto Trait Implementations§
impl Freeze for SuccessionPlan
impl RefUnwindSafe for SuccessionPlan
impl Send for SuccessionPlan
impl Sync for SuccessionPlan
impl Unpin for SuccessionPlan
impl UnsafeUnpin for SuccessionPlan
impl UnwindSafe for SuccessionPlan
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