Struct abstract_core_testing::objects::ContractEntry
source · pub struct ContractEntry {
pub protocol: String,
pub contract: String,
}
Expand description
Key to get the Address of a contract
Use UncheckedContractEntry
to construct this type.
Fields§
§protocol: String
§contract: String
Trait Implementations§
source§impl Clone for ContractEntry
impl Clone for ContractEntry
source§fn clone(&self) -> ContractEntry
fn clone(&self) -> ContractEntry
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 ContractEntry
impl Debug for ContractEntry
source§impl<'de> Deserialize<'de> for ContractEntry
impl<'de> Deserialize<'de> for ContractEntry
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 Display for ContractEntry
impl Display for ContractEntry
source§impl From<ContractEntry> for UncheckedContractEntry
impl From<ContractEntry> for UncheckedContractEntry
source§fn from(contract_entry: ContractEntry) -> Self
fn from(contract_entry: ContractEntry) -> Self
Converts to this type from the input type.
source§impl From<UncheckedContractEntry> for ContractEntry
impl From<UncheckedContractEntry> for ContractEntry
source§fn from(entry: UncheckedContractEntry) -> Self
fn from(entry: UncheckedContractEntry) -> Self
Converts to this type from the input type.
source§impl JsonSchema for ContractEntry
impl JsonSchema for ContractEntry
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. 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 KeyDeserialize for &ContractEntry
impl KeyDeserialize for &ContractEntry
source§impl Ord for ContractEntry
impl Ord for ContractEntry
source§fn cmp(&self, other: &ContractEntry) -> Ordering
fn cmp(&self, other: &ContractEntry) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ContractEntry> for ContractEntry
impl PartialEq<ContractEntry> for ContractEntry
source§fn eq(&self, other: &ContractEntry) -> bool
fn eq(&self, other: &ContractEntry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ContractEntry> for ContractEntry
impl PartialOrd<ContractEntry> for ContractEntry
source§fn partial_cmp(&self, other: &ContractEntry) -> Option<Ordering>
fn partial_cmp(&self, other: &ContractEntry) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> Prefixer<'a> for &ContractEntry
impl<'a> Prefixer<'a> for &ContractEntry
source§impl<'a> PrimaryKey<'a> for &ContractEntry
impl<'a> PrimaryKey<'a> for &ContractEntry
§type Prefix = String
type Prefix = String
These associated types need to implement
Prefixer
, so that they can be useful arguments
for prefix()
, sub_prefix()
, and their key-deserializable variants.type SubPrefix = ()
§type Suffix = String
type Suffix = String
These associated types need to implement
KeyDeserialize
, so that they can be returned from
range_de()
and friends.type SuperSuffix = &ContractEntry
fn joined_key(&self) -> Vec<u8, Global>
fn joined_extra_key(&self, key: &[u8]) -> Vec<u8, Global>
source§impl Serialize for ContractEntry
impl Serialize for ContractEntry
impl Eq for ContractEntry
impl StructuralEq for ContractEntry
impl StructuralPartialEq for ContractEntry
Auto Trait Implementations§
impl RefUnwindSafe for ContractEntry
impl Send for ContractEntry
impl Sync for ContractEntry
impl Unpin for ContractEntry
impl UnwindSafe for ContractEntry
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