pub struct PropertyDef { /* private fields */ }
Available on crate feature
eip712
only.Expand description
An EIP-712 property definition.
Implementations§
Source§impl PropertyDef
impl PropertyDef
Sourcepub fn new_unchecked<T, N>(type_name: T, name: N) -> Self
pub fn new_unchecked<T, N>(type_name: T, name: N) -> Self
Instantiate a new name-type pair, without checking that the type name is a valid root type.
Sourcepub fn root_type_name(&self) -> &str
pub fn root_type_name(&self) -> &str
Returns the root type of the name/type pair, stripping any array.
Trait Implementations§
Source§impl Clone for PropertyDef
impl Clone for PropertyDef
Source§fn clone(&self) -> PropertyDef
fn clone(&self) -> PropertyDef
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 PropertyDef
impl Debug for PropertyDef
Source§impl<'de> Deserialize<'de> for PropertyDef
impl<'de> Deserialize<'de> for PropertyDef
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for PropertyDef
impl Hash for PropertyDef
Source§impl PartialEq for PropertyDef
impl PartialEq for PropertyDef
Source§impl Serialize for PropertyDef
impl Serialize for PropertyDef
impl Eq for PropertyDef
impl StructuralPartialEq for PropertyDef
Auto Trait Implementations§
impl Freeze for PropertyDef
impl RefUnwindSafe for PropertyDef
impl Send for PropertyDef
impl Sync for PropertyDef
impl Unpin for PropertyDef
impl UnwindSafe for PropertyDef
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
)