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§
source§impl 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§
source§impl Clone for IbcChannel
impl Clone for IbcChannel
source§fn clone(&self) -> IbcChannel
fn clone(&self) -> IbcChannel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IbcChannel
impl Debug for IbcChannel
source§impl<'de> Deserialize<'de> for IbcChannel
impl<'de> Deserialize<'de> for IbcChannel
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 From<IbcChannelCloseMsg> for IbcChannel
impl From<IbcChannelCloseMsg> for IbcChannel
source§fn from(msg: IbcChannelCloseMsg) -> IbcChannel
fn from(msg: IbcChannelCloseMsg) -> IbcChannel
Converts to this type from the input type.
source§impl From<IbcChannelConnectMsg> for IbcChannel
impl From<IbcChannelConnectMsg> for IbcChannel
source§fn from(msg: IbcChannelConnectMsg) -> IbcChannel
fn from(msg: IbcChannelConnectMsg) -> IbcChannel
Converts to this type from the input type.
source§impl From<IbcChannelOpenMsg> for IbcChannel
impl From<IbcChannelOpenMsg> for IbcChannel
source§fn from(msg: IbcChannelOpenMsg) -> IbcChannel
fn from(msg: IbcChannelOpenMsg) -> IbcChannel
Converts to this type from the input type.
source§impl JsonSchema for IbcChannel
impl JsonSchema for IbcChannel
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 moresource§impl PartialEq for IbcChannel
impl PartialEq for IbcChannel
source§fn eq(&self, other: &IbcChannel) -> bool
fn eq(&self, other: &IbcChannel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl 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§
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