pub struct PropertyDef { /* private fields */ }Available on crate feature
dyn-abi only.Expand description
An EIP-712 property definition.
Implementations§
Source§impl PropertyDef
impl PropertyDef
Sourcepub fn new<T, N>(type_name: T, name: N) -> Result<PropertyDef, Error>
Available on crate feature eip712 only.
pub fn new<T, N>(type_name: T, name: N) -> Result<PropertyDef, Error>
eip712 only.Instantiate a new name-type pair.
Sourcepub fn new_unchecked<T, N>(type_name: T, name: N) -> PropertyDef
Available on crate feature eip712 only.
pub fn new_unchecked<T, N>(type_name: T, name: N) -> PropertyDef
eip712 only.Instantiate a new name-type pair, without checking that the type name is a valid root type.
Sourcepub fn name(&self) -> &str
Available on crate feature eip712 only.
pub fn name(&self) -> &str
eip712 only.Returns the name of the property.
Sourcepub fn type_name(&self) -> &str
Available on crate feature eip712 only.
pub fn type_name(&self) -> &str
eip712 only.Returns the type name of the property.
Sourcepub fn root_type_name(&self) -> &str
Available on crate feature eip712 only.
pub fn root_type_name(&self) -> &str
eip712 only.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: D,
) -> Result<PropertyDef, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<PropertyDef, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes