pub enum KeyState {
NotFound,
Invalid(Option<SignedActionHashed>),
Valid(SignedActionHashed),
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyState
impl<'de> Deserialize<'de> for KeyState
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 TryFrom<&KeyState> for AppEntryBytes
impl TryFrom<&KeyState> for AppEntryBytes
Source§impl TryFrom<&KeyState> for SerializedBytes
impl TryFrom<&KeyState> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: &KeyState) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &KeyState) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<KeyState> for AppEntryBytes
impl TryFrom<KeyState> for AppEntryBytes
Source§impl TryFrom<KeyState> for SerializedBytes
impl TryFrom<KeyState> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: KeyState) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: KeyState) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<SerializedBytes> for KeyState
impl TryFrom<SerializedBytes> for KeyState
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(sb: SerializedBytes) -> Result<KeyState, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<KeyState, SerializedBytesError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for KeyState
impl RefUnwindSafe for KeyState
impl Send for KeyState
impl Sync for KeyState
impl Unpin for KeyState
impl UnwindSafe for KeyState
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