pub enum GateRequest {
SendMsg {
msg: Binary,
to_contract: String,
send_native: Option<SendNativeInfo>,
},
Query {
queries: Vec<QueryRequest<Empty>>,
callback_msg: Option<Binary>,
},
}
Expand description
List of Request that can be forwarded to the gate
.
Variants§
SendMsg
Send a msg to a specific contract in a remote chain. The contract that should receive has to:
- Set the
Permission
in thegate
contract (if Permission::Permissioned, the remotegate
assert if the contract allow to receive msg from thesender
); - Handle the
ReceiveGateMsg(GateMsg::ReceviedMsg)
on itsExecuteMsg
variant
Query
Perform a list queries in a remote chain.
Once the result turn back into the chain, the gate send a ExecuteMsg to the asker contract.
The asker contract must hanlde the ReceiveGateMsg(GateMsg::QueryResponse)
on its ExecuteMsg
variant.
Implementations§
Source§impl GateRequest
impl GateRequest
pub fn send_native(&self) -> Option<SendNativeInfo>
Trait Implementations§
Source§impl Clone for GateRequest
impl Clone for GateRequest
Source§fn clone(&self) -> GateRequest
fn clone(&self) -> GateRequest
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 GateRequest
impl Debug for GateRequest
Source§impl<'de> Deserialize<'de> for GateRequest
impl<'de> Deserialize<'de> for GateRequest
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 GateRequest
impl JsonSchema for GateRequest
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &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 PartialEq for GateRequest
impl PartialEq for GateRequest
Source§impl Serialize for GateRequest
impl Serialize for GateRequest
impl StructuralPartialEq for GateRequest
Auto Trait Implementations§
impl Freeze for GateRequest
impl RefUnwindSafe for GateRequest
impl Send for GateRequest
impl Sync for GateRequest
impl Unpin for GateRequest
impl UnwindSafe for GateRequest
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