pub struct ResourceOwnerPasswordCredentialBuilder { /* private fields */ }
Implementations§
Source§impl ResourceOwnerPasswordCredentialBuilder
impl ResourceOwnerPasswordCredentialBuilder
pub fn with_client_id<T: AsRef<str>>(&mut self, client_id: T) -> &mut Self
pub fn with_username<T: AsRef<str>>(&mut self, username: T) -> &mut Self
pub fn with_password<T: AsRef<str>>(&mut self, password: T) -> &mut Self
Sourcepub fn with_tenant<T: AsRef<str>>(&mut self, tenant: T) -> &mut Self
pub fn with_tenant<T: AsRef<str>>(&mut self, tenant: T) -> &mut Self
The grant type isn’t supported on the /common or /consumers authentication contexts. Use /organizations or a tenant ID instead. Convenience method. Same as calling [with_authority(Authority::TenantId(“tenant_id”))]
pub fn with_scope<T: ToString, I: IntoIterator<Item = T>>( &mut self, scope: I, ) -> &mut Self
The grant type isn’t supported on the /common or /consumers authentication contexts. Use /organizations or a tenant ID instead. Authority defaults to /organizations if no tenant id or authority is given.
pub fn build(&self) -> ResourceOwnerPasswordCredential
Trait Implementations§
Source§impl Clone for ResourceOwnerPasswordCredentialBuilder
impl Clone for ResourceOwnerPasswordCredentialBuilder
Source§fn clone(&self) -> ResourceOwnerPasswordCredentialBuilder
fn clone(&self) -> ResourceOwnerPasswordCredentialBuilder
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 moreAuto Trait Implementations§
impl Freeze for ResourceOwnerPasswordCredentialBuilder
impl !RefUnwindSafe for ResourceOwnerPasswordCredentialBuilder
impl Send for ResourceOwnerPasswordCredentialBuilder
impl Sync for ResourceOwnerPasswordCredentialBuilder
impl Unpin for ResourceOwnerPasswordCredentialBuilder
impl !UnwindSafe for ResourceOwnerPasswordCredentialBuilder
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