pub enum HumanPresentNotarizationState {
Drafted,
PendingDecision,
Approved,
MandateIssued,
EnvelopeIssued,
Delivered,
Denied,
}Expand description
State in the APH human-present notarization flow.
Variants§
Drafted
Agent has drafted a message and requested notarization.
PendingDecision
Notary has shown the approval modal to the human.
Approved
Human approved (AlwaysAllow scope match OR AskEveryTime accept).
MandateIssued
Notary issued the CommunicationMandate.
EnvelopeIssued
Notary signed and emitted the NotarizationEnvelope.
Delivered
Terminal: envelope delivered to channel adapter.
Denied
Terminal: human denied or NeverAllow scope match.
Implementations§
Source§impl HumanPresentNotarizationState
impl HumanPresentNotarizationState
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Returns true if this state is terminal (no further transitions).
Sourcepub fn valid_transitions(&self) -> &'static [Self]
pub fn valid_transitions(&self) -> &'static [Self]
Returns the set of states this state may transition to.
Sourcepub fn can_transition_to(&self, next: Self) -> bool
pub fn can_transition_to(&self, next: Self) -> bool
Returns true if next is a legal successor of self.
Trait Implementations§
Source§impl Clone for HumanPresentNotarizationState
impl Clone for HumanPresentNotarizationState
Source§fn clone(&self) -> HumanPresentNotarizationState
fn clone(&self) -> HumanPresentNotarizationState
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 HumanPresentNotarizationState
Source§impl<'de> Deserialize<'de> for HumanPresentNotarizationState
impl<'de> Deserialize<'de> for HumanPresentNotarizationState
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 HumanPresentNotarizationState
Source§impl Hash for HumanPresentNotarizationState
impl Hash for HumanPresentNotarizationState
impl StructuralPartialEq for HumanPresentNotarizationState
Auto Trait Implementations§
impl Freeze for HumanPresentNotarizationState
impl RefUnwindSafe for HumanPresentNotarizationState
impl Send for HumanPresentNotarizationState
impl Sync for HumanPresentNotarizationState
impl Unpin for HumanPresentNotarizationState
impl UnsafeUnpin for HumanPresentNotarizationState
impl UnwindSafe for HumanPresentNotarizationState
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