Struct tame_gcs::signing::ServiceAccount[][src]

pub struct ServiceAccount { /* fields omitted */ }

A GCP service account, used as a KeyProvider when signing URLs.

Implementations

impl ServiceAccount[src]

pub fn load_json_file<P: AsRef<Path>>(path: P) -> Result<Self, Error>[src]

Attempts to load a service account from a JSON file

pub fn load_json<B: AsRef<[u8]>>(json_data: B) -> Result<Self, Error>[src]

Attempts to load a service account from a JSON byte slice

Trait Implementations

impl KeyProvider for ServiceAccount[src]

Auto Trait Implementations

impl RefUnwindSafe for ServiceAccount

impl Send for ServiceAccount

impl Sync for ServiceAccount

impl Unpin for ServiceAccount

impl UnwindSafe for ServiceAccount

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.