pub struct DescriptorDisplay {
pub definitions: HashMap<String, DisplayField>,
pub formats: HashMap<String, DisplayFormat>,
}Expand description
Top-level display section of a descriptor.
Fields§
§definitions: HashMap<String, DisplayField>Reusable field definitions that can be referenced via $ref.
formats: HashMap<String, DisplayFormat>Map of format key → display format.
For calldata: key is function signature like "transfer(address,uint256)".
For EIP-712: key is primary type name.
Trait Implementations§
Source§impl Clone for DescriptorDisplay
impl Clone for DescriptorDisplay
Source§fn clone(&self) -> DescriptorDisplay
fn clone(&self) -> DescriptorDisplay
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DescriptorDisplay
impl Debug for DescriptorDisplay
Source§impl<'de> Deserialize<'de> for DescriptorDisplay
impl<'de> Deserialize<'de> for DescriptorDisplay
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
Auto Trait Implementations§
impl Freeze for DescriptorDisplay
impl RefUnwindSafe for DescriptorDisplay
impl Send for DescriptorDisplay
impl Sync for DescriptorDisplay
impl Unpin for DescriptorDisplay
impl UnsafeUnpin for DescriptorDisplay
impl UnwindSafe for DescriptorDisplay
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