#[non_exhaustive]pub enum IbcQuery {
PortId {},
ListChannels {
port_id: Option<String>,
},
Channel {
channel_id: String,
port_id: Option<String>,
},
FeeEnabledChannel {
port_id: Option<String>,
channel_id: String,
},
}
Expand description
These are queries to the various IBC modules to see the state of the contract’s IBC connection. Most of these will return errors if the contract is not “ibc enabled”.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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
.
Fields
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
.
FeeEnabledChannel
Queries whether the given channel supports IBC fees. If port_id is omitted, it will default to the contract’s own channel. (To save a PortId{} call)
Returns a FeeEnabledChannelResponse
.
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>,
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
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more