pub enum KeyResolverKind {
Inline([u8; 32]),
Custom {
id: Digest,
data: Vec<u8>,
},
}
Expand description
A key-resolver algorithm.
Variants§
Inline([u8; 32])
The key is stored inline and may be used directly.
Custom
The key must be resolved using the key resolver with the given digest. The data
is passed
to the key resolver algorithm.
Trait Implementations§
Source§impl BorshDeserialize for KeyResolverKind
impl BorshDeserialize for KeyResolverKind
fn deserialize_reader<__R>(reader: &mut __R) -> Result<KeyResolverKind, Error>where
__R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for KeyResolverKind
impl BorshSerialize for KeyResolverKind
Source§impl Clone for KeyResolverKind
impl Clone for KeyResolverKind
Source§fn clone(&self) -> KeyResolverKind
fn clone(&self) -> KeyResolverKind
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 KeyResolverKind
impl Debug for KeyResolverKind
Source§impl EnumExt for KeyResolverKind
impl EnumExt for KeyResolverKind
Source§fn deserialize_variant<__R>(
reader: &mut __R,
variant_tag: u8,
) -> Result<KeyResolverKind, Error>where
__R: Read,
fn deserialize_variant<__R>(
reader: &mut __R,
variant_tag: u8,
) -> Result<KeyResolverKind, Error>where
__R: Read,
Deserialises given variant of an enum from the reader. Read more
Auto Trait Implementations§
impl Freeze for KeyResolverKind
impl RefUnwindSafe for KeyResolverKind
impl Send for KeyResolverKind
impl Sync for KeyResolverKind
impl Unpin for KeyResolverKind
impl UnwindSafe for KeyResolverKind
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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