pub struct MessageMeta {
pub namespace: Cow<'static, str>,
pub identifier: Cow<'static, str>,
pub bus: Option<Cow<'static, str>>,
}Expand description
Metadaten für einen Nachrichtentyp.
Die Kombination aus namespace und identifier sollte für jeden Nachrichtentyp global eindeutig sein.
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>Namespace des Nachrichtentyps.
The namespace of the message type.
identifier: Cow<'static, str>Identifikator des Nachrichtentyps.
The identifier of the message type.
bus: Option<Cow<'static, str>>Bus, über den die Nachricht gesendet werden soll.
The bus the message should be sent on.
Implementations§
Trait Implementations§
Source§impl Clone for MessageMeta
impl Clone for MessageMeta
Source§impl Debug for MessageMeta
impl Debug for MessageMeta
Source§impl<'de> Deserialize<'de> for MessageMeta
impl<'de> Deserialize<'de> for MessageMeta
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 Eq for MessageMeta
Source§impl Hash for MessageMeta
impl Hash for MessageMeta
Source§impl PartialEq for MessageMeta
impl PartialEq for MessageMeta
Source§impl Serialize for MessageMeta
impl Serialize 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 UnsafeUnpin 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