pub struct ClientCredentialsProvider { /* private fields */ }Implementations§
Source§impl ClientCredentialsProvider
impl ClientCredentialsProvider
pub fn new( token_endpoint: String, client_id: String, client_secret: String, scope: Option<String>, audience: Option<Vec<String>>, ) -> Self
Sourcepub fn new_unchecked_for_test(
token_endpoint: String,
client_id: String,
client_secret: String,
scope: Option<String>,
audience: Option<Vec<String>>,
http: Client,
) -> Self
pub fn new_unchecked_for_test( token_endpoint: String, client_id: String, client_secret: String, scope: Option<String>, audience: Option<Vec<String>>, http: Client, ) -> Self
Test-only constructor that accepts a pre-built HTTP client.
Skips SSRF validation and allows injecting a mock-capable client
(e.g. wiremock-configured). Do NOT use in production code.
Trait Implementations§
Source§impl Debug for ClientCredentialsProvider
impl Debug for ClientCredentialsProvider
Auto Trait Implementations§
impl !Freeze for ClientCredentialsProvider
impl !RefUnwindSafe for ClientCredentialsProvider
impl Send for ClientCredentialsProvider
impl Sync for ClientCredentialsProvider
impl Unpin for ClientCredentialsProvider
impl UnsafeUnpin for ClientCredentialsProvider
impl !UnwindSafe for ClientCredentialsProvider
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