Struct cosmwasm_std::IbcChannel
source · [−]#[non_exhaustive]pub struct IbcChannel {
pub endpoint: IbcEndpoint,
pub counterparty_endpoint: IbcEndpoint,
pub order: IbcOrder,
pub version: String,
pub connection_id: String,
}
Expand description
IbcChannel defines all information on a channel. This is generally used in the hand-shake process, but can be queried directly.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.endpoint: IbcEndpoint
counterparty_endpoint: IbcEndpoint
order: IbcOrder
version: String
Note: in ibcv3 this may be “”, in the IbcOpenChannel handshake messages
connection_id: String
The connection upon which this channel was created. If this is a multi-hop channel, we only expose the first hop.
Implementations
sourceimpl IbcChannel
impl IbcChannel
sourcepub fn new(
endpoint: IbcEndpoint,
counterparty_endpoint: IbcEndpoint,
order: IbcOrder,
version: impl Into<String>,
connection_id: impl Into<String>
) -> Self
pub fn new(
endpoint: IbcEndpoint,
counterparty_endpoint: IbcEndpoint,
order: IbcOrder,
version: impl Into<String>,
connection_id: impl Into<String>
) -> Self
Construct a new IbcChannel.
Trait Implementations
sourceimpl Clone for IbcChannel
impl Clone for IbcChannel
sourcefn clone(&self) -> IbcChannel
fn clone(&self) -> IbcChannel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for IbcChannel
impl Debug for IbcChannel
sourceimpl<'de> Deserialize<'de> for IbcChannel
impl<'de> Deserialize<'de> for IbcChannel
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 From<IbcChannelCloseMsg> for IbcChannel
impl From<IbcChannelCloseMsg> for IbcChannel
sourcefn from(msg: IbcChannelCloseMsg) -> IbcChannel
fn from(msg: IbcChannelCloseMsg) -> IbcChannel
Converts to this type from the input type.
sourceimpl From<IbcChannelConnectMsg> for IbcChannel
impl From<IbcChannelConnectMsg> for IbcChannel
sourcefn from(msg: IbcChannelConnectMsg) -> IbcChannel
fn from(msg: IbcChannelConnectMsg) -> IbcChannel
Converts to this type from the input type.
sourceimpl From<IbcChannelOpenMsg> for IbcChannel
impl From<IbcChannelOpenMsg> for IbcChannel
sourcefn from(msg: IbcChannelOpenMsg) -> IbcChannel
fn from(msg: IbcChannelOpenMsg) -> IbcChannel
Converts to this type from the input type.
sourceimpl JsonSchema for IbcChannel
impl JsonSchema for IbcChannel
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 moresourceimpl PartialEq<IbcChannel> for IbcChannel
impl PartialEq<IbcChannel> for IbcChannel
sourcefn eq(&self, other: &IbcChannel) -> bool
fn eq(&self, other: &IbcChannel) -> bool
sourceimpl Serialize for IbcChannel
impl Serialize for IbcChannel
impl Eq for IbcChannel
impl StructuralEq for IbcChannel
impl StructuralPartialEq for IbcChannel
Auto Trait Implementations
impl RefUnwindSafe for IbcChannel
impl Send for IbcChannel
impl Sync for IbcChannel
impl Unpin for IbcChannel
impl UnwindSafe for IbcChannel
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