pub enum DescriptorContext {
Contract(ContractContext),
Eip712(Eip712Context),
}Expand description
Top-level context discriminator — either contract (calldata) or eip712.
Variants§
Contract(ContractContext)
Eip712(Eip712Context)
Implementations§
Source§impl DescriptorContext
impl DescriptorContext
pub fn deployments(&self) -> &[Deployment]
Trait Implementations§
Source§impl Clone for DescriptorContext
impl Clone for DescriptorContext
Source§fn clone(&self) -> DescriptorContext
fn clone(&self) -> DescriptorContext
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 DescriptorContext
impl Debug for DescriptorContext
Source§impl<'de> Deserialize<'de> for DescriptorContext
impl<'de> Deserialize<'de> for DescriptorContext
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 DescriptorContext
impl RefUnwindSafe for DescriptorContext
impl Send for DescriptorContext
impl Sync for DescriptorContext
impl Unpin for DescriptorContext
impl UnsafeUnpin for DescriptorContext
impl UnwindSafe for DescriptorContext
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