pub struct HumanPresentNotarizationFlow { /* private fields */ }Expand description
A human-present APH notarization flow wrapping state + mandate references.
Implementations§
Source§impl HumanPresentNotarizationFlow
impl HumanPresentNotarizationFlow
Sourcepub fn new(communication_mandate_id: impl Into<String>) -> Self
pub fn new(communication_mandate_id: impl Into<String>) -> Self
Constructs a new flow in the Drafted state bound to the given
CommunicationMandate.id.
Sourcepub fn state(&self) -> HumanPresentNotarizationState
pub fn state(&self) -> HumanPresentNotarizationState
Current state of the flow.
Sourcepub fn communication_mandate_id(&self) -> &str
pub fn communication_mandate_id(&self) -> &str
Bound CommunicationMandate.id.
Sourcepub fn envelope_id(&self) -> Option<&str>
pub fn envelope_id(&self) -> Option<&str>
Optionally-bound NotarizationEnvelope.id (set after MandateIssued).
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 to this flow.
Sourcepub fn transition_to(
&mut self,
next: HumanPresentNotarizationState,
) -> Result<(), AphError>
pub fn transition_to( &mut self, next: HumanPresentNotarizationState, ) -> 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 HumanPresentNotarizationFlow
impl Clone for HumanPresentNotarizationFlow
Source§impl Debug for HumanPresentNotarizationFlow
impl Debug for HumanPresentNotarizationFlow
Source§impl<'de> Deserialize<'de> for HumanPresentNotarizationFlow
impl<'de> Deserialize<'de> for HumanPresentNotarizationFlow
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 HumanPresentNotarizationFlow
impl StructuralPartialEq for HumanPresentNotarizationFlow
Auto Trait Implementations§
impl Freeze for HumanPresentNotarizationFlow
impl RefUnwindSafe for HumanPresentNotarizationFlow
impl Send for HumanPresentNotarizationFlow
impl Sync for HumanPresentNotarizationFlow
impl Unpin for HumanPresentNotarizationFlow
impl UnsafeUnpin for HumanPresentNotarizationFlow
impl UnwindSafe for HumanPresentNotarizationFlow
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