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
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
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 more
sourceimpl 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
Performs the conversion.
sourceimpl From<IbcChannelConnectMsg> for IbcChannel
impl From<IbcChannelConnectMsg> for IbcChannel
sourcefn from(msg: IbcChannelConnectMsg) -> IbcChannel
fn from(msg: IbcChannelConnectMsg) -> IbcChannel
Performs the conversion.
sourceimpl From<IbcChannelOpenMsg> for IbcChannel
impl From<IbcChannelOpenMsg> for IbcChannel
sourcefn from(msg: IbcChannelOpenMsg) -> IbcChannel
fn from(msg: IbcChannelOpenMsg) -> IbcChannel
Performs the conversion.
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 more
sourceimpl PartialEq<IbcChannel> for IbcChannel
impl PartialEq<IbcChannel> for IbcChannel
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &IbcChannel) -> bool
fn ne(&self, other: &IbcChannel) -> bool
This method tests for !=
.
sourceimpl Serialize for IbcChannel
impl Serialize 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more