Struct lotus_script::message::MessageMeta  
pub struct MessageMeta {
    pub namespace: Cow<'static, str>,
    pub identifier: Cow<'static, str>,
    pub bus: Option<Cow<'static, str>>,
}Expand description
Represents the metadata for a message type.
The combination of namespace and identifier should be globally unique for each message type.
Fields§
§namespace: Cow<'static, str>The namespace of the message type.
identifier: Cow<'static, str>The identifier of the message type.
bus: Option<Cow<'static, str>>The bus the message should be sent on.
Implementations§
§impl MessageMeta
 
impl MessageMeta
Trait Implementations§
§impl Clone for MessageMeta
 
impl Clone for MessageMeta
§fn clone(&self) -> MessageMeta
 
fn clone(&self) -> MessageMeta
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 more§impl Debug for MessageMeta
 
impl Debug for MessageMeta
§impl<'de> Deserialize<'de> for MessageMeta
 
impl<'de> Deserialize<'de> for MessageMeta
§fn deserialize<__D>(
    __deserializer: __D
) -> Result<MessageMeta, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D
) -> Result<MessageMeta, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Hash for MessageMeta
 
impl Hash for MessageMeta
§impl PartialEq for MessageMeta
 
impl PartialEq for MessageMeta
§fn eq(&self, other: &MessageMeta) -> bool
 
fn eq(&self, other: &MessageMeta) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.§impl Serialize for MessageMeta
 
impl Serialize for MessageMeta
§fn serialize<__S>(
    &self,
    __serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
 
fn serialize<__S>(
    &self,
    __serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for MessageMeta
impl StructuralPartialEq for MessageMeta
Auto Trait Implementations§
impl Freeze for MessageMeta
impl RefUnwindSafe for MessageMeta
impl Send for MessageMeta
impl Sync for MessageMeta
impl Unpin for MessageMeta
impl UnwindSafe for MessageMeta
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