pub struct Struct(/* private fields */);Expand description
EIP-712 structure instance.
Implementations§
Source§impl Struct
impl Struct
pub fn new() -> Self
pub fn with_capacity(cap: usize) -> Self
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn get( &self, key: &(impl ?Sized + Hash + Equivalent<String>), ) -> Option<&Value>
pub fn get_mut( &mut self, key: &(impl ?Sized + Hash + Equivalent<String>), ) -> Option<&mut Value>
pub fn iter(&self) -> Iter<'_, String, Value>
pub fn keys(&self) -> Keys<'_, String, Value>
pub fn insert(&mut self, name: String, value: Value) -> Option<Value>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Struct
impl<'de> Deserialize<'de> for Struct
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<'a> IntoIterator for &'a Struct
impl<'a> IntoIterator for &'a Struct
Source§impl IntoIterator for Struct
impl IntoIterator for Struct
impl Eq for Struct
impl StructuralPartialEq for Struct
Auto Trait Implementations§
impl Freeze for Struct
impl RefUnwindSafe for Struct
impl Send for Struct
impl Sync for Struct
impl Unpin for Struct
impl UnwindSafe for Struct
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.