pub enum RecoveredAuthority {
Valid(Address),
Invalid,
}
Expand description
Represents the outcome of an attempt to recover the authority from an authorization.
It can either be valid (containing an Address
) or invalid (indicating recovery failure).
Variants§
Valid(Address)
Indicates a successfully recovered authority address.
Invalid
Indicates a failed recovery attempt where no valid address could be recovered.
Implementations§
Trait Implementations§
Source§impl Clone for RecoveredAuthority
impl Clone for RecoveredAuthority
Source§fn clone(&self) -> RecoveredAuthority
fn clone(&self) -> RecoveredAuthority
Returns a copy of the value. Read more
1.0.0 · 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 RecoveredAuthority
impl Debug for RecoveredAuthority
Source§impl<'de> Deserialize<'de> for RecoveredAuthority
impl<'de> Deserialize<'de> for RecoveredAuthority
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 From<SignedAuthorization> for RecoveredAuthority
impl From<SignedAuthorization> for RecoveredAuthority
Source§fn from(value: SignedAuthorization) -> Self
fn from(value: SignedAuthorization) -> Self
Converts to this type from the input type.
Source§impl Hash for RecoveredAuthority
impl Hash for RecoveredAuthority
Source§impl PartialEq for RecoveredAuthority
impl PartialEq for RecoveredAuthority
Source§impl Serialize for RecoveredAuthority
impl Serialize for RecoveredAuthority
impl Eq for RecoveredAuthority
impl StructuralPartialEq for RecoveredAuthority
Auto Trait Implementations§
impl Freeze for RecoveredAuthority
impl RefUnwindSafe for RecoveredAuthority
impl Send for RecoveredAuthority
impl Sync for RecoveredAuthority
impl Unpin for RecoveredAuthority
impl UnwindSafe for RecoveredAuthority
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)