pub enum WsAuthCredentials {
Jwt {
token: String,
},
}Expand description
Authentication credentials for WebSocket connection.
This enum is the client-facing authentication model for WebSocket
connections. It maps 1:1 with AuthRequest variants in kalamdb-auth.
Variants§
Trait Implementations§
Source§impl Clone for WsAuthCredentials
impl Clone for WsAuthCredentials
Source§fn clone(&self) -> WsAuthCredentials
fn clone(&self) -> WsAuthCredentials
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WsAuthCredentials
impl Debug for WsAuthCredentials
Source§impl<'de> Deserialize<'de> for WsAuthCredentials
impl<'de> Deserialize<'de> for WsAuthCredentials
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WsAuthCredentials, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WsAuthCredentials, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WsAuthCredentials
Source§impl PartialEq for WsAuthCredentials
impl PartialEq for WsAuthCredentials
Source§fn eq(&self, other: &WsAuthCredentials) -> bool
fn eq(&self, other: &WsAuthCredentials) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WsAuthCredentials
impl Serialize for WsAuthCredentials
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for WsAuthCredentials
Auto Trait Implementations§
impl Freeze for WsAuthCredentials
impl RefUnwindSafe for WsAuthCredentials
impl Send for WsAuthCredentials
impl Sync for WsAuthCredentials
impl Unpin for WsAuthCredentials
impl UnsafeUnpin for WsAuthCredentials
impl UnwindSafe for WsAuthCredentials
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.