pub enum WebSocketAuthMessage {
Simple(SmartString),
Jwt(SmartString),
Custom {
message: SmartString,
metadata: SmartString,
},
}Expand description
WebSocket authentication message types
Variants§
Simple(SmartString)
Simple authentication message (JSON)
Jwt(SmartString)
JWT-based authentication
Custom
Custom authentication with metadata
Trait Implementations§
Source§impl Clone for WebSocketAuthMessage
impl Clone for WebSocketAuthMessage
Source§fn clone(&self) -> WebSocketAuthMessage
fn clone(&self) -> WebSocketAuthMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WebSocketAuthMessage
impl RefUnwindSafe for WebSocketAuthMessage
impl Send for WebSocketAuthMessage
impl Sync for WebSocketAuthMessage
impl Unpin for WebSocketAuthMessage
impl UnwindSafe for WebSocketAuthMessage
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