pub struct Credentials { /* private fields */ }Implementations§
Source§impl Credentials
impl Credentials
pub async fn default() -> Self
pub async fn find_default(scopes: Option<&'static [&'static str]>) -> Self
pub fn from_json(json: &[u8], scopes: &'static [&'static str]) -> Self
pub fn from_file( path: impl AsRef<Path>, scopes: &'static [&'static str], ) -> Self
pub async fn from_metadata( account: Option<&'static str>, scopes: &'static [&'static str], ) -> Self
Trait Implementations§
Source§impl Debug for Credentials
impl Debug for Credentials
Source§impl From<Credentials> for TokenSource
impl From<Credentials> for TokenSource
Source§fn from(c: Credentials) -> Self
fn from(c: Credentials) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Credentials
impl !RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl !UnwindSafe for Credentials
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