pub struct AuthenticationResult {
pub request_id: String,
pub success: bool,
pub message: String,
pub server_version: String,
pub client_id: Option<String>,
pub permissions: Option<Vec<String>>,
pub expires_in_seconds: Option<u64>,
}Expand description
Server to client: the answer to Authenticate. Never carries a secret.
Fields§
§request_id: String§success: bool§message: String§server_version: String§client_id: Option<String>The identity this session’s grants are filed under (the credential’s subject).
permissions: Option<Vec<String>>The scopes the session holds, e.g. service:read (informational).
expires_in_seconds: Option<u64>Trait Implementations§
Source§impl Clone for AuthenticationResult
impl Clone for AuthenticationResult
Source§impl Debug for AuthenticationResult
impl Debug for AuthenticationResult
Source§impl<'de> Deserialize<'de> for AuthenticationResult
impl<'de> Deserialize<'de> for AuthenticationResult
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
impl Eq for AuthenticationResult
Source§impl PartialEq for AuthenticationResult
impl PartialEq for AuthenticationResult
Source§impl Serialize for AuthenticationResult
impl Serialize for AuthenticationResult
impl StructuralPartialEq for AuthenticationResult
Auto Trait Implementations§
impl Freeze for AuthenticationResult
impl RefUnwindSafe for AuthenticationResult
impl Send for AuthenticationResult
impl Sync for AuthenticationResult
impl Unpin for AuthenticationResult
impl UnsafeUnpin 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