Struct cosmwasm_std::Attribute
source · pub struct Attribute {
pub key: String,
pub value: String,
}
Expand description
An key value pair that is used in the context of event attributes in logs
Fields§
§key: String
§value: String
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Attribute
impl<'de> Deserialize<'de> for Attribute
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 JsonSchema for Attribute
impl JsonSchema for Attribute
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<K: AsRef<str>, V: AsRef<str>> PartialEq<&Attribute> for (K, V)
impl<K: AsRef<str>, V: AsRef<str>> PartialEq<&Attribute> for (K, V)
source§impl PartialEq<&Attribute> for Attribute
impl PartialEq<&Attribute> for Attribute
source§impl<K: AsRef<str>, V: AsRef<str>> PartialEq<(K, V)> for &Attribute
impl<K: AsRef<str>, V: AsRef<str>> PartialEq<(K, V)> for &Attribute
source§impl<K: AsRef<str>, V: AsRef<str>> PartialEq<(K, V)> for Attribute
impl<K: AsRef<str>, V: AsRef<str>> PartialEq<(K, V)> for Attribute
source§impl<'a> PartialEq<Attribute> for &'a Attribute
impl<'a> PartialEq<Attribute> for &'a Attribute
source§impl<K: AsRef<str>, V: AsRef<str>> PartialEq<Attribute> for (K, V)
impl<K: AsRef<str>, V: AsRef<str>> PartialEq<Attribute> for (K, V)
source§impl PartialEq for Attribute
impl PartialEq for Attribute
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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