#[non_exhaustive]pub enum CredentialResponse {
Get {
token: Secret<String>,
cache: CacheControl,
operation_independent: bool,
},
Login,
Logout,
Unknown,
}
Expand description
Message sent by the credential helper
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for CredentialResponse
impl Clone for CredentialResponse
source§fn clone(&self) -> CredentialResponse
fn clone(&self) -> CredentialResponse
Returns a copy 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 CredentialResponse
impl Debug for CredentialResponse
source§impl<'de> Deserialize<'de> for CredentialResponse
impl<'de> Deserialize<'de> for CredentialResponse
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
source§impl PartialEq<CredentialResponse> for CredentialResponse
impl PartialEq<CredentialResponse> for CredentialResponse
source§fn eq(&self, other: &CredentialResponse) -> bool
fn eq(&self, other: &CredentialResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CredentialResponse
impl Serialize for CredentialResponse
impl Eq for CredentialResponse
impl StructuralEq for CredentialResponse
impl StructuralPartialEq for CredentialResponse
Auto Trait Implementations§
impl RefUnwindSafe for CredentialResponse
impl Send for CredentialResponse
impl Sync for CredentialResponse
impl Unpin for CredentialResponse
impl UnwindSafe for CredentialResponse
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
impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes
Size for each variant:
Get
: 47 bytesLogin
: 0 bytesLogout
: 0 bytesUnknown
: 0 bytes