Struct google_cloud_auth::idtoken::IdTokenSourceConfig
source · pub struct IdTokenSourceConfig { /* private fields */ }Implementations§
source§impl IdTokenSourceConfig
impl IdTokenSourceConfig
pub fn new() -> IdTokenSourceConfig
pub fn with_credentials(self, creds: CredentialsFile) -> Self
pub fn with_custom_claims(self, custom_claims: HashMap<String, Value>) -> Self
pub async fn build(self, audience: &str) -> Result<Box<dyn TokenSource>, Error>
Trait Implementations§
source§impl Clone for IdTokenSourceConfig
impl Clone for IdTokenSourceConfig
source§fn clone(&self) -> IdTokenSourceConfig
fn clone(&self) -> IdTokenSourceConfig
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 IdTokenSourceConfig
impl Debug for IdTokenSourceConfig
source§impl Default for IdTokenSourceConfig
impl Default for IdTokenSourceConfig
source§fn default() -> IdTokenSourceConfig
fn default() -> IdTokenSourceConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for IdTokenSourceConfig
impl Send for IdTokenSourceConfig
impl Sync for IdTokenSourceConfig
impl Unpin for IdTokenSourceConfig
impl UnwindSafe for IdTokenSourceConfig
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