pub struct ComponentType<'a> {
pub span: &'a str,
pub type_name: &'a str,
pub props: Vec<PropDef<'a>>,
}
Available on crate feature
eip712
only.Expand description
Represents a single component type in an EIP-712 encodeType
type string.
https://eips.ethereum.org/EIPS/eip-712#definition-of-encodetype
Fields§
§span: &'a str
The span.
type_name: &'a str
The name of the component type.
props: Vec<PropDef<'a>>
Properties of the component type.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ComponentType<'a>
impl<'a> Clone for ComponentType<'a>
Source§fn clone(&self) -> ComponentType<'a>
fn clone(&self) -> ComponentType<'a>
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<'a> Debug for ComponentType<'a>
impl<'a> Debug for ComponentType<'a>
Source§impl<'a> PartialEq for ComponentType<'a>
impl<'a> PartialEq for ComponentType<'a>
Source§impl<'a> TryFrom<&'a str> for ComponentType<'a>
impl<'a> TryFrom<&'a str> for ComponentType<'a>
impl<'a> Eq for ComponentType<'a>
impl<'a> StructuralPartialEq for ComponentType<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentType<'a>
impl<'a> RefUnwindSafe for ComponentType<'a>
impl<'a> Send for ComponentType<'a>
impl<'a> Sync for ComponentType<'a>
impl<'a> Unpin for ComponentType<'a>
impl<'a> UnwindSafe for ComponentType<'a>
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
)