#[non_exhaustive]pub struct ClientCredentials {
pub token_url: String,
pub client_id: String,
pub client_secret: String,
pub scopes: Vec<String>,
}Available on crate features
api and transport-reqwest only.Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.token_url: StringThe token endpoint URL.
client_id: StringThe client identifier.
client_secret: StringThe client secret.
scopes: Vec<String>Scopes to request, if any.
Implementations§
Trait Implementations§
Source§impl Clone for ClientCredentials
impl Clone for ClientCredentials
Auto Trait Implementations§
impl Forget for ClientCredentials
impl Freeze for ClientCredentials
impl Move for ClientCredentials
impl RefUnwindSafe for ClientCredentials
impl Send for ClientCredentials
impl Sync for ClientCredentials
impl Unpin for ClientCredentials
impl UnsafeUnpin for ClientCredentials
impl UnwindSafe for ClientCredentials
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