Struct fadroma::core::ContractLink
source · pub struct ContractLink<A: MaybeAddress> {
pub address: A,
pub code_hash: String,
}
Expand description
Info needed to talk to a contract instance.
Fields§
§address: A
§code_hash: String
Implementations§
source§impl ContractLink<String>
impl ContractLink<String>
Trait Implementations§
source§impl Canonize for ContractLink<Addr>
impl Canonize for ContractLink<Addr>
type Output = ContractLink<CanonicalAddr>
fn canonize(self, api: &dyn Api) -> StdResult<Self::Output>
source§impl<A: Clone + MaybeAddress> Clone for ContractLink<A>
impl<A: Clone + MaybeAddress> Clone for ContractLink<A>
source§fn clone(&self) -> ContractLink<A>
fn clone(&self) -> ContractLink<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 + MaybeAddress> Debug for ContractLink<A>
impl<A: Debug + MaybeAddress> Debug for ContractLink<A>
source§impl<A: Default + MaybeAddress> Default for ContractLink<A>
impl<A: Default + MaybeAddress> Default for ContractLink<A>
source§fn default() -> ContractLink<A>
fn default() -> ContractLink<A>
Returns the “default value” for a type. Read more
source§impl<'de, A> Deserialize<'de> for ContractLink<A>where
A: Deserialize<'de> + MaybeAddress,
impl<'de, A> Deserialize<'de> for ContractLink<A>where A: Deserialize<'de> + MaybeAddress,
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: MaybeAddress + FadromaDeserialize> FadromaDeserialize for ContractLink<A>
impl<A: MaybeAddress + FadromaDeserialize> FadromaDeserialize for ContractLink<A>
source§fn from_bytes<'a>(de: &mut Deserializer<'a>) -> Result<Self>
fn from_bytes<'a>(de: &mut Deserializer<'a>) -> Result<Self>
Deserialize into a new instance by reading bytes from
the provided
Deserializer
.source§impl<A: MaybeAddress + FadromaSerialize> FadromaSerialize for ContractLink<A>
impl<A: MaybeAddress + FadromaSerialize> FadromaSerialize for ContractLink<A>
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
The size in bytes of the particular instance when
converted to its byte respresentation. While it’s
preferred that this method returns an exact size
(or at least a bigger estimation) it’s not an error
to return an incorrect number. The penalty for doing
so is potentially incurring unnecessary re-allocations.
source§fn to_bytes(&self, ser: &mut Serializer) -> Result<()>
fn to_bytes(&self, ser: &mut Serializer) -> Result<()>
Serialize the instance into bytes by writing to
the provided
Serializer
.source§impl From<ContractLink<Addr>> for ISnip20
impl From<ContractLink<Addr>> for ISnip20
source§fn from(link: ContractLink<Addr>) -> Self
fn from(link: ContractLink<Addr>) -> Self
Converts to this type from the input type.
source§impl Humanize for ContractLink<CanonicalAddr>
impl Humanize for ContractLink<CanonicalAddr>
source§impl<A: MaybeAddress + JsonSchema> JsonSchema for ContractLink<A>
impl<A: MaybeAddress + JsonSchema> JsonSchema for ContractLink<A>
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<A: MaybeAddress + PartialEq> PartialEq<ContractLink<A>> for ContractLink<A>
impl<A: MaybeAddress + PartialEq> PartialEq<ContractLink<A>> for ContractLink<A>
source§impl<A> Serialize for ContractLink<A>where
A: Serialize + MaybeAddress,
impl<A> Serialize for ContractLink<A>where A: Serialize + MaybeAddress,
Auto Trait Implementations§
impl<A> RefUnwindSafe for ContractLink<A>where A: RefUnwindSafe,
impl<A> Send for ContractLink<A>where A: Send,
impl<A> Sync for ContractLink<A>where A: Sync,
impl<A> Unpin for ContractLink<A>where A: Unpin,
impl<A> UnwindSafe for ContractLink<A>where A: UnwindSafe,
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