Enum minerva_broker::model::SessionMessage
source · [−]#[non_exhaustive]
pub enum SessionMessage {
Remove {
user: String,
},
}
Expand description
Represents a message for the session_management
queue, more specifically
related to managing user sessions.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Remove
Fields
user: String
The user whose sessions should be removed.
Message for removing all sessions of a given user.
Implementations
Trait Implementations
sourceimpl Clone for SessionMessage
impl Clone for SessionMessage
sourcefn clone(&self) -> SessionMessage
fn clone(&self) -> SessionMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SessionMessage
impl Debug for SessionMessage
sourceimpl<'de> Deserialize<'de> for SessionMessage
impl<'de> Deserialize<'de> for SessionMessage
sourcefn 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
sourceimpl Serialize for SessionMessage
impl Serialize for SessionMessage
Auto Trait Implementations
impl RefUnwindSafe for SessionMessage
impl Send for SessionMessage
impl Sync for SessionMessage
impl Unpin for SessionMessage
impl UnwindSafe for SessionMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more