pub struct OnlineMessage {
pub topic: Option<Bytes>,
pub content_type: Option<String>,
pub online: Option<Bytes>,
pub offline: Option<Bytes>,
}Expand description
Specifies messages to sent to a topic when the connection goes online or offline.
Fields§
§topic: Option<Bytes>§content_type: Option<String>§online: Option<Bytes>§offline: Option<Bytes>Trait Implementations§
Source§impl Clone for OnlineMessage
impl Clone for OnlineMessage
Source§fn clone(&self) -> OnlineMessage
fn clone(&self) -> OnlineMessage
Returns a duplicate 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 moreAuto Trait Implementations§
impl !Freeze for OnlineMessage
impl RefUnwindSafe for OnlineMessage
impl Send for OnlineMessage
impl Sync for OnlineMessage
impl Unpin for OnlineMessage
impl UnwindSafe for OnlineMessage
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