#[non_exhaustive]pub enum ClientCredential {
None,
Secret(String),
Assertion(String),
}
Expand description
Credential of client for code redeemption.
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.
None
Nothing.
This is the usual case for non-confidential native apps.
Secret(String)
The application secret that you created in the app registration portal for your app.
Don’t use the application secret in a native app or single page app because a
client_secret
can’t be reliably stored on devices or web pages.
Assertion(String)
An assertion, which is a JSON web token (JWT), that you need to create and sign with the certificate you registered as credentials for your application.
Trait Implementations§
Source§impl Clone for ClientCredential
impl Clone for ClientCredential
Source§fn clone(&self) -> ClientCredential
fn clone(&self) -> ClientCredential
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 ClientCredential
impl Debug for ClientCredential
Source§impl Default for ClientCredential
impl Default for ClientCredential
Source§fn default() -> ClientCredential
fn default() -> ClientCredential
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClientCredential
impl PartialEq for ClientCredential
impl Eq for ClientCredential
impl StructuralPartialEq for ClientCredential
Auto Trait Implementations§
impl Freeze for ClientCredential
impl RefUnwindSafe for ClientCredential
impl Send for ClientCredential
impl Sync for ClientCredential
impl Unpin for ClientCredential
impl UnwindSafe for ClientCredential
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,
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.