pub struct HumanNotPresentNotarizationFlow { /* private fields */ }Expand description
A human-not-present APH notarization flow wrapping state + mandate references.
Implementations§
Source§impl HumanNotPresentNotarizationFlow
impl HumanNotPresentNotarizationFlow
Sourcepub fn new(delegation_mandate_id: impl Into<String>) -> Self
pub fn new(delegation_mandate_id: impl Into<String>) -> Self
Constructs a new flow in the Drafted state bound to the given
DelegationMandate.id.
Sourcepub fn state(&self) -> HumanNotPresentNotarizationState
pub fn state(&self) -> HumanNotPresentNotarizationState
Current state of the flow.
Sourcepub fn delegation_mandate_id(&self) -> &str
pub fn delegation_mandate_id(&self) -> &str
Bound DelegationMandate.id.
Sourcepub fn communication_mandate_id(&self) -> Option<&str>
pub fn communication_mandate_id(&self) -> Option<&str>
Optionally-bound CommunicationMandate.id (set after MandateIssued).
Sourcepub fn envelope_id(&self) -> Option<&str>
pub fn envelope_id(&self) -> Option<&str>
Optionally-bound NotarizationEnvelope.id (set after EnvelopeIssued).
Sourcepub fn set_communication_mandate_id(&mut self, id: impl Into<String>)
pub fn set_communication_mandate_id(&mut self, id: impl Into<String>)
Binds the per-message communication-mandate identifier.
Sourcepub fn set_envelope_id(&mut self, id: impl Into<String>)
pub fn set_envelope_id(&mut self, id: impl Into<String>)
Binds the envelope identifier.
Sourcepub fn transition_to(
&mut self,
next: HumanNotPresentNotarizationState,
) -> Result<(), AphError>
pub fn transition_to( &mut self, next: HumanNotPresentNotarizationState, ) -> Result<(), AphError>
Attempts to transition to next. Returns APH_E002 on illegal
transitions; leaves self.state unchanged on error.
Trait Implementations§
Source§impl Clone for HumanNotPresentNotarizationFlow
impl Clone for HumanNotPresentNotarizationFlow
Source§fn clone(&self) -> HumanNotPresentNotarizationFlow
fn clone(&self) -> HumanNotPresentNotarizationFlow
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<'de> Deserialize<'de> for HumanNotPresentNotarizationFlow
impl<'de> Deserialize<'de> for HumanNotPresentNotarizationFlow
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 HumanNotPresentNotarizationFlow
impl StructuralPartialEq for HumanNotPresentNotarizationFlow
Auto Trait Implementations§
impl Freeze for HumanNotPresentNotarizationFlow
impl RefUnwindSafe for HumanNotPresentNotarizationFlow
impl Send for HumanNotPresentNotarizationFlow
impl Sync for HumanNotPresentNotarizationFlow
impl Unpin for HumanNotPresentNotarizationFlow
impl UnsafeUnpin for HumanNotPresentNotarizationFlow
impl UnwindSafe for HumanNotPresentNotarizationFlow
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