Enum cosmwasm_std::IbcQuery 
source · #[non_exhaustive]pub enum IbcQuery {
    PortId {},
    ListChannels {
        port_id: Option<String>,
    },
    Channel {
        channel_id: String,
        port_id: Option<String>,
    },
}Expand description
These are queries to the various IBC modules to see the state of the contract’s IBC connection. These will return errors if the contract is not “ibc enabled”
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PortId
Gets the Port ID the current contract is bound to.
Returns a PortIdResponse.
ListChannels
Lists all channels that are bound to a given port.
If port_id is omitted, this list all channels bound to the contract’s port.
Returns a ListChannelsResponse.
Channel
Lists all information for a (portID, channelID) pair. If port_id is omitted, it will default to the contract’s own channel. (To save a PortId{} call)
Returns a ChannelResponse.
Trait Implementations§
source§impl<'de> Deserialize<'de> for IbcQuery
 
impl<'de> Deserialize<'de> for IbcQuery
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<C: CustomQuery> From<IbcQuery> for QueryRequest<C>
 
impl<C: CustomQuery> From<IbcQuery> for QueryRequest<C>
source§impl JsonSchema for IbcQuery
 
impl JsonSchema for IbcQuery
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(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 moreimpl Eq for IbcQuery
impl StructuralPartialEq for IbcQuery
Auto Trait Implementations§
impl Freeze for IbcQuery
impl RefUnwindSafe for IbcQuery
impl Send for IbcQuery
impl Sync for IbcQuery
impl Unpin for IbcQuery
impl UnwindSafe for IbcQuery
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)