pub struct CredentialScope {
pub project: Option<String>,
pub region: Option<String>,
pub principal: Option<String>,
}Expand description
The coordinates a credential supplies to the endpoint it authenticates.
The cloud project, account or tenant it is confined to; the region, when it is confined to one; and the principal it acts as, for audit — never a secret.
Every field is optional because most credentials supply none of them: an
API key is a bare string and names nothing (empty).
Fields§
§project: Option<String>§region: Option<String>§principal: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for CredentialScope
impl Clone for CredentialScope
Source§fn clone(&self) -> CredentialScope
fn clone(&self) -> CredentialScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CredentialScope
impl Debug for CredentialScope
Source§impl Default for CredentialScope
impl Default for CredentialScope
Source§fn default() -> CredentialScope
fn default() -> CredentialScope
Returns the “default value” for a type. Read more
impl Eq for CredentialScope
Source§impl PartialEq for CredentialScope
impl PartialEq for CredentialScope
impl StructuralPartialEq for CredentialScope
Auto Trait Implementations§
impl Freeze for CredentialScope
impl RefUnwindSafe for CredentialScope
impl Send for CredentialScope
impl Sync for CredentialScope
impl Unpin for CredentialScope
impl UnsafeUnpin for CredentialScope
impl UnwindSafe for CredentialScope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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