pub struct MsgCreateClient {
pub client_state: Any,
pub consensus_state: Any,
pub signer: Signer,
}
Expand description
A type of message that triggers the creation of a new on-chain (IBC) client.
Fields§
§client_state: Any
§consensus_state: Any
§signer: Signer
Implementations§
Trait Implementations§
source§impl BorshDeserialize for MsgCreateClient
impl BorshDeserialize for MsgCreateClient
fn deserialize_reader<R>(reader: &mut R) -> Result<MsgCreateClient, Error>where
R: Read,
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for MsgCreateClient
impl BorshSerialize for MsgCreateClient
source§impl Clone for MsgCreateClient
impl Clone for MsgCreateClient
source§fn clone(&self) -> MsgCreateClient
fn clone(&self) -> MsgCreateClient
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 MsgCreateClient
impl Debug for MsgCreateClient
source§impl From<MsgCreateClient> for ClientMsg
impl From<MsgCreateClient> for ClientMsg
source§fn from(original: MsgCreateClient) -> ClientMsg
fn from(original: MsgCreateClient) -> ClientMsg
Converts to this type from the input type.
source§impl From<MsgCreateClient> for MsgCreateClient
impl From<MsgCreateClient> for MsgCreateClient
source§fn from(ics_msg: MsgCreateClient) -> MsgCreateClient
fn from(ics_msg: MsgCreateClient) -> MsgCreateClient
Converts to this type from the input type.
source§impl JsonSchema for MsgCreateClient
impl JsonSchema for MsgCreateClient
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 MsgCreateClient
impl PartialEq for MsgCreateClient
source§fn eq(&self, other: &MsgCreateClient) -> bool
fn eq(&self, other: &MsgCreateClient) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Protobuf<MsgCreateClient> for MsgCreateClient
impl Protobuf<MsgCreateClient> for MsgCreateClient
source§fn encode<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
fn encode<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
Encode into a buffer in Protobuf format. Read more
source§fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
Encode with a length-delimiter to a buffer in Protobuf format. Read more
source§fn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
fn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Constructor that attempts to decode an instance from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Constructor that attempts to decode a length-delimited instance from
the buffer. Read more
source§fn encoded_len(self) -> usize
fn encoded_len(self) -> usize
Returns the encoded length of the message without a length delimiter. Read more
source§fn decode_vec(v: &[u8]) -> Result<Self, Error>
fn decode_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8>
(or equivalent).source§impl TryFrom<MsgCreateClient> for MsgCreateClient
impl TryFrom<MsgCreateClient> for MsgCreateClient
§type Error = ClientError
type Error = ClientError
The type returned in the event of a conversion error.
source§fn try_from(
raw: MsgCreateClient
) -> Result<MsgCreateClient, <MsgCreateClient as TryFrom<MsgCreateClient>>::Error>
fn try_from( raw: MsgCreateClient ) -> Result<MsgCreateClient, <MsgCreateClient as TryFrom<MsgCreateClient>>::Error>
Performs the conversion.
impl Eq for MsgCreateClient
impl StructuralPartialEq for MsgCreateClient
Auto Trait Implementations§
impl Freeze for MsgCreateClient
impl RefUnwindSafe for MsgCreateClient
impl Send for MsgCreateClient
impl Sync for MsgCreateClient
impl Unpin for MsgCreateClient
impl UnwindSafe for MsgCreateClient
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