pub struct ContractSupportedInterface<'a> {
pub supported_interface: Cow<'a, str>,
pub version: Cow<'a, str>,
}Fields§
§supported_interface: Cow<'a, str>supported_interface is the name of an interface that the contract support.
This is inspired by the EIP-165 from Ethereum.
Interface names should follow a common standard such as
version: Cow<'a, str>semantic version on release tags of the interface package following SemVer guideline. e.g. “0.16.0”
Trait Implementations§
source§impl<'a> Clone for ContractSupportedInterface<'a>
impl<'a> Clone for ContractSupportedInterface<'a>
source§fn clone(&self) -> ContractSupportedInterface<'a>
fn clone(&self) -> ContractSupportedInterface<'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 ContractSupportedInterface<'a>
impl<'a> Debug for ContractSupportedInterface<'a>
source§impl<'de, 'a> Deserialize<'de> for ContractSupportedInterface<'a>
impl<'de, 'a> Deserialize<'de> for ContractSupportedInterface<'a>
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
source§impl<'a> JsonSchema for ContractSupportedInterface<'a>
impl<'a> JsonSchema for ContractSupportedInterface<'a>
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl<'a> PartialEq for ContractSupportedInterface<'a>
impl<'a> PartialEq for ContractSupportedInterface<'a>
source§fn eq(&self, other: &ContractSupportedInterface<'a>) -> bool
fn eq(&self, other: &ContractSupportedInterface<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.source§impl<'a> Serialize for ContractSupportedInterface<'a>
impl<'a> Serialize for ContractSupportedInterface<'a>
impl<'a> StructuralPartialEq for ContractSupportedInterface<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContractSupportedInterface<'a>
impl<'a> RefUnwindSafe for ContractSupportedInterface<'a>
impl<'a> Send for ContractSupportedInterface<'a>
impl<'a> Sync for ContractSupportedInterface<'a>
impl<'a> Unpin for ContractSupportedInterface<'a>
impl<'a> UnwindSafe for ContractSupportedInterface<'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)