pub struct AuthBuilder<'a> { /* private fields */ }Expand description
Builder for Auth.
Implementations§
Source§impl<'a> AuthBuilder<'a>
impl<'a> AuthBuilder<'a>
Sourcepub fn identity<VALUE: Into<Identity<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn identity<VALUE: Into<Identity<'a>>>(&mut self, value: VALUE) -> &mut Self
An identity object.
Sourcepub fn scope<VALUE: Into<Scope<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn scope<VALUE: Into<Scope<'a>>>(&mut self, value: VALUE) -> &mut Self
The authorization scope, including the system (Since v3.10), a project, or a domain (Since v3.4). If multiple scopes are specified in the same request (e.g. project and domain or domain and system) an HTTP 400 Bad Request will be returned, as a token cannot be simultaneously scoped to multiple authorization targets. An ID is sufficient to uniquely identify a project but if a project is specified by name, then the domain of the project must also be specified in order to uniquely identify the project by name. A domain scope may be specified by either the domain’s ID or name with equivalent results.
Trait Implementations§
Source§impl<'a> Clone for AuthBuilder<'a>
impl<'a> Clone for AuthBuilder<'a>
Source§fn clone(&self) -> AuthBuilder<'a>
fn clone(&self) -> AuthBuilder<'a>
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<'a> Freeze for AuthBuilder<'a>
impl<'a> RefUnwindSafe for AuthBuilder<'a>
impl<'a> Send for AuthBuilder<'a>
impl<'a> Sync for AuthBuilder<'a>
impl<'a> Unpin for AuthBuilder<'a>
impl<'a> UnwindSafe for AuthBuilder<'a>
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more