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
sourceimpl<'de> Deserialize<'de> for IbcQuery
impl<'de> Deserialize<'de> for IbcQuery
sourcefn 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
sourceimpl<C: CustomQuery> From<IbcQuery> for QueryRequest<C>
impl<C: CustomQuery> From<IbcQuery> for QueryRequest<C>
sourceimpl JsonSchema for IbcQuery
impl JsonSchema for IbcQuery
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 StructuralEq for IbcQuery
impl StructuralPartialEq for IbcQuery
Auto Trait Implementations
impl RefUnwindSafe for IbcQuery
impl Send for IbcQuery
impl Sync for IbcQuery
impl Unpin for IbcQuery
impl UnwindSafe for IbcQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more