Struct ibc::events::ModuleEventAttribute
source · pub struct ModuleEventAttribute {
pub key: String,
pub value: String,
}Fields§
§key: String§value: StringTrait Implementations§
source§impl BorshDeserialize for ModuleEventAttributewhere
String: BorshDeserialize,
impl BorshDeserialize for ModuleEventAttributewhere String: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
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 ModuleEventAttributewhere
String: BorshSerialize,
impl BorshSerialize for ModuleEventAttributewhere String: BorshSerialize,
source§impl Clone for ModuleEventAttribute
impl Clone for ModuleEventAttribute
source§fn clone(&self) -> ModuleEventAttribute
fn clone(&self) -> ModuleEventAttribute
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 ModuleEventAttribute
impl Debug for ModuleEventAttribute
source§impl Decode for ModuleEventAttribute
impl Decode for ModuleEventAttribute
source§impl<'de> Deserialize<'de> for ModuleEventAttribute
impl<'de> Deserialize<'de> for ModuleEventAttribute
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 Encode for ModuleEventAttribute
impl Encode for ModuleEventAttribute
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl From<ModuleEventAttribute> for EventAttribute
impl From<ModuleEventAttribute> for EventAttribute
source§fn from(attr: ModuleEventAttribute) -> Self
fn from(attr: ModuleEventAttribute) -> Self
Converts to this type from the input type.
source§impl PartialEq<ModuleEventAttribute> for ModuleEventAttribute
impl PartialEq<ModuleEventAttribute> for ModuleEventAttribute
source§fn eq(&self, other: &ModuleEventAttribute) -> bool
fn eq(&self, other: &ModuleEventAttribute) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ModuleEventAttribute
impl Serialize for ModuleEventAttribute
source§impl TypeInfo for ModuleEventAttribute
impl TypeInfo for ModuleEventAttribute
impl EncodeLike<ModuleEventAttribute> for ModuleEventAttribute
impl Eq for ModuleEventAttribute
impl StructuralEq for ModuleEventAttribute
impl StructuralPartialEq for ModuleEventAttribute
Auto Trait Implementations§
impl RefUnwindSafe for ModuleEventAttribute
impl Send for ModuleEventAttribute
impl Sync for ModuleEventAttribute
impl Unpin for ModuleEventAttribute
impl UnwindSafe for ModuleEventAttribute
Blanket Implementations§
source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere T: Decode,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more