#[non_exhaustive]pub enum MoveAuthenticator {
V1(MoveAuthenticatorV1),
}Expand description
MoveAuthenticator is a signature variant that enables a method of authentication through Move code. This type represents the data received by the Move authenticate function during the Account Abstraction authentication flow.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl MoveAuthenticator
impl MoveAuthenticator
Sourcepub fn as_v1(&self) -> &MoveAuthenticatorV1
pub fn as_v1(&self) -> &MoveAuthenticatorV1
Converts this into a v1 if it is a v1 variant, or panics otherwise.
Sourcepub fn as_mut_v1(&mut self) -> &mut MoveAuthenticatorV1
pub fn as_mut_v1(&mut self) -> &mut MoveAuthenticatorV1
Converts this into a mut v1 if it is a v1 variant, or panics otherwise.
Sourcepub fn as_opt_v1(&self) -> Option<&MoveAuthenticatorV1>
pub fn as_opt_v1(&self) -> Option<&MoveAuthenticatorV1>
Converts this into a v1 if it is a v1 variant, or returns None otherwise.
Sourcepub fn as_opt_mut_v1(&mut self) -> Option<&mut MoveAuthenticatorV1>
pub fn as_opt_mut_v1(&mut self) -> Option<&mut MoveAuthenticatorV1>
Converts this into a mut v1 if it is a v1 variant, or returns None otherwise.
Sourcepub fn into_opt_v1(self) -> Option<MoveAuthenticatorV1>
pub fn into_opt_v1(self) -> Option<MoveAuthenticatorV1>
Converts this into a v1 if it is a v1 variant, or returns None otherwise.
Sourcepub fn into_v1(self) -> MoveAuthenticatorV1
pub fn into_v1(self) -> MoveAuthenticatorV1
Converts this into a v1 if it is a v1 variant, or panics otherwise.
Trait Implementations§
Source§impl Arbitrary for MoveAuthenticator
Available on crate feature proptest only.
impl Arbitrary for MoveAuthenticator
Available on crate feature
proptest only.Source§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = BoxedStrategy<MoveAuthenticator>
type Strategy = BoxedStrategy<MoveAuthenticator>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(
args_shared: <Self as Arbitrary>::Parameters,
) -> Self::Strategy
fn arbitrary_with( args_shared: <Self as Arbitrary>::Parameters, ) -> Self::Strategy
Source§impl Clone for MoveAuthenticator
impl Clone for MoveAuthenticator
Source§fn clone(&self) -> MoveAuthenticator
fn clone(&self) -> MoveAuthenticator
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 MoveAuthenticator
impl Debug for MoveAuthenticator
Source§impl<'de> Deserialize<'de> for MoveAuthenticator
Available on crate feature serde only.
impl<'de> Deserialize<'de> for MoveAuthenticator
Available on crate feature
serde only.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
Source§impl Display for MoveAuthenticator
impl Display for MoveAuthenticator
impl Eq for MoveAuthenticator
Source§impl From<MoveAuthenticator> for UserSignature
impl From<MoveAuthenticator> for UserSignature
Source§fn from(value: MoveAuthenticator) -> Self
fn from(value: MoveAuthenticator) -> Self
Converts to this type from the input type.
Source§impl From<MoveAuthenticatorV1> for MoveAuthenticator
impl From<MoveAuthenticatorV1> for MoveAuthenticator
Source§fn from(value: MoveAuthenticatorV1) -> Self
fn from(value: MoveAuthenticatorV1) -> Self
Converts to this type from the input type.
Source§impl Hash for MoveAuthenticator
impl Hash for MoveAuthenticator
Source§impl PartialEq for MoveAuthenticator
impl PartialEq for MoveAuthenticator
Source§impl Serialize for MoveAuthenticator
Available on crate feature serde only.
impl Serialize for MoveAuthenticator
Available on crate feature
serde only.impl StructuralPartialEq for MoveAuthenticator
Auto Trait Implementations§
impl Freeze for MoveAuthenticator
impl RefUnwindSafe for MoveAuthenticator
impl Send for MoveAuthenticator
impl Sync for MoveAuthenticator
impl Unpin for MoveAuthenticator
impl UnsafeUnpin for MoveAuthenticator
impl UnwindSafe for MoveAuthenticator
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