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
Fields
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 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 more