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