pub struct EnrollBound { /* private fields */ }Expand description
Canonical successful enrollment receipt.
Implementations§
Source§impl EnrollBound
impl EnrollBound
Sourcepub const fn new(
conversation_id: ConversationId,
token: EnrollmentToken,
participant_id: ParticipantId,
attach_secret: AttachSecret,
origin_binding_epoch: BindingEpoch,
receipt_expires_at: u128,
provenance_expires_at: u128,
) -> Option<Self>
pub const fn new( conversation_id: ConversationId, token: EnrollmentToken, participant_id: ParticipantId, attach_secret: AttachSecret, origin_binding_epoch: BindingEpoch, receipt_expires_at: u128, provenance_expires_at: u128, ) -> Option<Self>
Creates an enrollment result only for the protocol’s fixed generation 1.
Returns None when the origin binding epoch does not carry generation 1.
The required wire fields request_generation, persisted_cursor, and
accepted_marker_delivery_seq are synthesized as None, zero, and
None, respectively.
Sourcepub const fn conversation_id(&self) -> ConversationId
pub const fn conversation_id(&self) -> ConversationId
Conversation from the request.
Sourcepub const fn token(&self) -> EnrollmentToken
pub const fn token(&self) -> EnrollmentToken
Enrollment token echoed as the result token.
Sourcepub const fn participant_id(&self) -> ParticipantId
pub const fn participant_id(&self) -> ParticipantId
Minted participant.
Sourcepub const fn request_generation(&self) -> Option<Generation>
pub const fn request_generation(&self) -> Option<Generation>
Required absent request generation.
Sourcepub const fn capability_generation(&self) -> Generation
pub const fn capability_generation(&self) -> Generation
Fixed enrollment result generation 1.
Sourcepub const fn attach_secret(&self) -> AttachSecret
pub const fn attach_secret(&self) -> AttachSecret
Newly minted attach secret.
Sourcepub const fn origin_binding_epoch(&self) -> BindingEpoch
pub const fn origin_binding_epoch(&self) -> BindingEpoch
Origin binding epoch.
Sourcepub const fn persisted_cursor(&self) -> DeliverySeq
pub const fn persisted_cursor(&self) -> DeliverySeq
Fixed persisted cursor zero.
Sourcepub const fn accepted_marker_delivery_seq(&self) -> Option<DeliverySeq>
pub const fn accepted_marker_delivery_seq(&self) -> Option<DeliverySeq>
Required absent accepted-marker field.
Sourcepub const fn receipt_expires_at(&self) -> u128
pub const fn receipt_expires_at(&self) -> u128
Receipt deadline.
Sourcepub const fn provenance_expires_at(&self) -> u128
pub const fn provenance_expires_at(&self) -> u128
Provenance deadline.
Trait Implementations§
Source§impl Clone for EnrollBound
impl Clone for EnrollBound
Source§fn clone(&self) -> EnrollBound
fn clone(&self) -> EnrollBound
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 moreSource§impl Debug for EnrollBound
impl Debug for EnrollBound
impl Eq for EnrollBound
Source§impl PartialEq for EnrollBound
impl PartialEq for EnrollBound
impl StructuralPartialEq for EnrollBound
Auto Trait Implementations§
impl Freeze for EnrollBound
impl RefUnwindSafe for EnrollBound
impl Send for EnrollBound
impl Sync for EnrollBound
impl Unpin for EnrollBound
impl UnsafeUnpin for EnrollBound
impl UnwindSafe for EnrollBound
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