Struct casper_types::NamedKey
source · pub struct NamedKey {
pub name: String,
pub key: String,
}
Expand description
A named key.
Fields§
§name: String
The name of the entry.
key: String
The value of the entry: a casper Key
type.
Trait Implementations§
source§impl<'de> Deserialize<'de> for NamedKey
impl<'de> Deserialize<'de> for NamedKey
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 PartialEq for NamedKey
impl PartialEq for NamedKey
source§impl ToBytes for NamedKey
impl ToBytes for NamedKey
source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Returns the length of the
Vec<u8>
which would be returned from a successful call to
to_bytes()
or into_bytes()
. The data is not actually serialized, so this call is
relatively cheap.impl Eq for NamedKey
impl StructuralEq for NamedKey
impl StructuralPartialEq for NamedKey
Auto Trait Implementations§
impl RefUnwindSafe for NamedKey
impl Send for NamedKey
impl Sync for NamedKey
impl Unpin for NamedKey
impl UnwindSafe for NamedKey
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