pub struct AuthenticationResult {
pub headers: HeaderMap,
pub signed_query: Option<SmartString>,
pub ws_auth_message: Option<SmartString>,
pub validity_duration: Option<Duration>,
}Expand description
Result of authentication operations
Fields§
§headers: HeaderMapHTTP headers for the request
signed_query: Option<SmartString>Signed query string (if applicable)
ws_auth_message: Option<SmartString>WebSocket authentication message (if applicable)
validity_duration: Option<Duration>Authentication validity duration
Implementations§
Source§impl AuthenticationResult
impl AuthenticationResult
Sourcepub fn with_signed_query(self, query: impl Into<SmartString>) -> Self
pub fn with_signed_query(self, query: impl Into<SmartString>) -> Self
Set signed query string
Sourcepub fn with_ws_auth_message(self, message: impl Into<SmartString>) -> Self
pub fn with_ws_auth_message(self, message: impl Into<SmartString>) -> Self
Set WebSocket authentication message
Sourcepub const fn with_validity_duration(self, duration: Duration) -> Self
pub const fn with_validity_duration(self, duration: Duration) -> Self
Set validity duration
Trait Implementations§
Source§impl Clone for AuthenticationResult
impl Clone for AuthenticationResult
Source§fn clone(&self) -> AuthenticationResult
fn clone(&self) -> AuthenticationResult
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 AuthenticationResult
impl RefUnwindSafe for AuthenticationResult
impl Send for AuthenticationResult
impl Sync for AuthenticationResult
impl Unpin for AuthenticationResult
impl UnwindSafe for AuthenticationResult
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