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<RecoveredAuthority, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecoveredAuthority, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SignedAuthorization> for RecoveredAuthority
Available on crate feature k256
only.
impl From<SignedAuthorization> for RecoveredAuthority
Available on crate feature
k256
only.Source§fn from(value: SignedAuthorization) -> RecoveredAuthority
fn from(value: SignedAuthorization) -> RecoveredAuthority
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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more