pub struct Callback<A: MaybeAddress> {
pub msg: Binary,
pub contract: ContractLink<A>,
}
Expand description
Info needed to have the other contract respond. This was mainly only useful in CW 0.10 where reply functionality didn’t exist yet. However, it is still useful when you want to be able to reply with arbitrary messages.
Fields§
§msg: Binary
The message to call.
contract: ContractLink<A>
Info about the contract requesting the callback.
Implementations§
Trait Implementations§
source§impl<'de, A> Deserialize<'de> for Callback<A>where
A: Deserialize<'de> + MaybeAddress,
impl<'de, A> Deserialize<'de> for Callback<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 Humanize for Callback<CanonicalAddr>
impl Humanize for Callback<CanonicalAddr>
source§impl<A: MaybeAddress + JsonSchema> JsonSchema for Callback<A>
impl<A: MaybeAddress + JsonSchema> JsonSchema for Callback<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: PartialEq + MaybeAddress> PartialEq<Callback<A>> for Callback<A>
impl<A: PartialEq + MaybeAddress> PartialEq<Callback<A>> for Callback<A>
impl<A: MaybeAddress> StructuralPartialEq for Callback<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for Callback<A>where A: RefUnwindSafe,
impl<A> Send for Callback<A>where A: Send,
impl<A> Sync for Callback<A>where A: Sync,
impl<A> Unpin for Callback<A>where A: Unpin,
impl<A> UnwindSafe for Callback<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