pub struct AuthStatus {
pub authenticated: bool,
pub auth_mode: Option<String>,
pub scopes: Option<Vec<String>>,
pub next_steps: Option<Vec<String>>,
}Expand description
Authentication status response
Fields§
§authenticated: bool§auth_mode: Option<String>§scopes: Option<Vec<String>>§next_steps: Option<Vec<String>>Implementations§
Source§impl AuthStatus
impl AuthStatus
Sourcepub fn unauthenticated(next_steps: Vec<String>) -> Self
pub fn unauthenticated(next_steps: Vec<String>) -> Self
Create an unauthenticated status with next steps
Sourcepub fn authenticated(auth_mode: String, scopes: Vec<String>) -> Self
pub fn authenticated(auth_mode: String, scopes: Vec<String>) -> Self
Create an authenticated status
Trait Implementations§
Source§impl Clone for AuthStatus
impl Clone for AuthStatus
Source§fn clone(&self) -> AuthStatus
fn clone(&self) -> AuthStatus
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 moreSource§impl Debug for AuthStatus
impl Debug for AuthStatus
Source§impl<'de> Deserialize<'de> for AuthStatus
impl<'de> Deserialize<'de> for AuthStatus
Source§fn 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
Auto Trait Implementations§
impl Freeze for AuthStatus
impl RefUnwindSafe for AuthStatus
impl Send for AuthStatus
impl Sync for AuthStatus
impl Unpin for AuthStatus
impl UnwindSafe for AuthStatus
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