pub struct InitialEnrollmentClosureInput { /* private fields */ }Expand description
Durable state and signed configuration required by initial enrollment.
Implementations§
Source§impl InitialEnrollmentClosureInput
impl InitialEnrollmentClosureInput
Sourcepub const fn new(
accounting: ClosureAccounting,
identity_slots: u64,
mandatory_bound: ResourceVector,
recovery_claim: ResourceVector,
marker_max: ResourceVector,
attached_charge: ResourceVector,
participant_index: ParticipantIndex,
binding_epoch: BindingEpoch,
order: OrderLedger,
sequence: SequenceLedger,
physical_floor: u128,
observer_progress: u64,
) -> Self
pub const fn new( accounting: ClosureAccounting, identity_slots: u64, mandatory_bound: ResourceVector, recovery_claim: ResourceVector, marker_max: ResourceVector, attached_charge: ResourceVector, participant_index: ParticipantIndex, binding_epoch: BindingEpoch, order: OrderLedger, sequence: SequenceLedger, physical_floor: u128, observer_progress: u64, ) -> Self
Captures the persisted empty-conversation facts read by the projector.
Validation is intentionally deferred to
project_initial_enrollment_closure so the caller cannot obtain any
authority merely by constructing this factual snapshot.
Sourcepub const fn with_binding_epoch(self, binding_epoch: BindingEpoch) -> Self
pub const fn with_binding_epoch(self, binding_epoch: BindingEpoch) -> Self
Replaces the factual binding epoch before projection validation.
Sourcepub const fn with_attached_charge(self, attached_charge: ResourceVector) -> Self
pub const fn with_attached_charge(self, attached_charge: ResourceVector) -> Self
Replaces the factual encoded Attached charge before validation.
Trait Implementations§
Source§impl Clone for InitialEnrollmentClosureInput
impl Clone for InitialEnrollmentClosureInput
Source§fn clone(&self) -> InitialEnrollmentClosureInput
fn clone(&self) -> InitialEnrollmentClosureInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InitialEnrollmentClosureInput
impl Eq for InitialEnrollmentClosureInput
impl StructuralPartialEq for InitialEnrollmentClosureInput
Auto Trait Implementations§
impl Freeze for InitialEnrollmentClosureInput
impl RefUnwindSafe for InitialEnrollmentClosureInput
impl Send for InitialEnrollmentClosureInput
impl Sync for InitialEnrollmentClosureInput
impl Unpin for InitialEnrollmentClosureInput
impl UnsafeUnpin for InitialEnrollmentClosureInput
impl UnwindSafe for InitialEnrollmentClosureInput
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