Struct google_authz::Credentials [−][src]
pub struct Credentials { /* fields omitted */ }
Implementations
impl Credentials
[src]
impl Credentials
[src]pub async fn default() -> Self
[src]
pub async fn find_default(scopes: Option<&'static [&'static str]>) -> Self
[src]
pub fn from_json(json: &[u8], scopes: &'static [&'static str]) -> Self
[src]
pub fn from_file(
path: impl AsRef<Path>,
scopes: &'static [&'static str]
) -> Self
[src]
path: impl AsRef<Path>,
scopes: &'static [&'static str]
) -> Self
pub async fn from_metadata(
account: Option<&'static str>,
scopes: &'static [&'static str]
) -> Self
[src]
account: Option<&'static str>,
scopes: &'static [&'static str]
) -> Self
Trait Implementations
impl Debug for Credentials
[src]
impl Debug for Credentials
[src]impl From<Credentials> for TokenSource
[src]
impl From<Credentials> for TokenSource
[src]fn from(c: Credentials) -> Self
[src]
fn from(c: Credentials) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl !UnwindSafe for Credentials
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]