Enum nois::ReceiverExecuteMsg
source · pub enum ReceiverExecuteMsg {
NoisReceive {
callback: NoisCallback,
},
}Expand description
This is just a helper to properly serialize the above callback. The actual receiver should include this variant in the larger ExecuteMsg enum.
Variants§
NoisReceive
Fields
§
callback: NoisCallbackThis is sent as {"nois_receive": {"callback": {"job_id": "...", "randomness": "aabbddff.."}}}
to the contract. We prefix the enum variant with nois_ in order to avoid
a collision with other contracts (see https://github.com/noislabs/nois/issues/4).
Trait Implementations§
source§impl Clone for ReceiverExecuteMsg
impl Clone for ReceiverExecuteMsg
source§fn clone(&self) -> ReceiverExecuteMsg
fn clone(&self) -> ReceiverExecuteMsg
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 ReceiverExecuteMsg
impl Debug for ReceiverExecuteMsg
source§impl<'de> Deserialize<'de> for ReceiverExecuteMsg
impl<'de> Deserialize<'de> for ReceiverExecuteMsg
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 JsonSchema for ReceiverExecuteMsg
impl JsonSchema for ReceiverExecuteMsg
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
§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 PartialEq<ReceiverExecuteMsg> for ReceiverExecuteMsg
impl PartialEq<ReceiverExecuteMsg> for ReceiverExecuteMsg
source§fn eq(&self, other: &ReceiverExecuteMsg) -> bool
fn eq(&self, other: &ReceiverExecuteMsg) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ReceiverExecuteMsg
impl Serialize for ReceiverExecuteMsg
impl StructuralPartialEq for ReceiverExecuteMsg
Auto Trait Implementations§
impl RefUnwindSafe for ReceiverExecuteMsg
impl Send for ReceiverExecuteMsg
impl Sync for ReceiverExecuteMsg
impl Unpin for ReceiverExecuteMsg
impl UnwindSafe for ReceiverExecuteMsg
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