pub struct CQCode {
pub cq_type: String,
pub data: HashMap<String, String>,
}Expand description
Represents a CQCode, which is a structured data type used for encoding and decoding messages with a specific type and associated data.
§Fields
cq_type- A string representing the type of the CQCode.data- AHashMapcontaining key-value pairs of additional data associated with the CQCode.
Fields§
§cq_type: String§data: HashMap<String, String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CQCode
impl<'de> Deserialize<'de> for CQCode
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
impl StructuralPartialEq for CQCode
Auto Trait Implementations§
impl Freeze for CQCode
impl RefUnwindSafe for CQCode
impl Send for CQCode
impl Sync for CQCode
impl Unpin for CQCode
impl UnwindSafe for CQCode
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