pub struct Message {
pub topic: String,
pub tag: String,
pub keys: Vec<String>,
pub attributes: HashMap<String, String>,
pub body: Bytes,
/* private fields */
}Fields§
§topic: StringIn the publisher-subscriber model, a topic is an addresses where messages are delivered to and subscribed from.
tag: String§keys: Vec<String>§attributes: HashMap<String, String>User defined attributes in form of key-value paris. Attributes are indexed by backend broker servers, thus, may be utilized to query.
body: BytesAuto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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