pub struct OperatorCredentials {
pub issuer: String,
pub client_id: ClientId,
pub id_token: CloudAuthToken,
pub email: Option<Email>,
pub authenticated_at: DateTime<Utc>,
}Fields§
§issuer: String§client_id: ClientId§id_token: CloudAuthToken§email: Option<Email>§authenticated_at: DateTime<Utc>Implementations§
Source§impl OperatorCredentials
impl OperatorCredentials
pub fn is_expired(&self) -> bool
pub fn load_from_path(path: &Path) -> CloudResult<Self>
pub fn load_valid(path: &Path) -> CloudResult<Self>
pub fn save_to_path(&self, path: &Path) -> CloudResult<()>
pub fn delete_from_path(path: &Path) -> CloudResult<()>
Trait Implementations§
Source§impl Clone for OperatorCredentials
impl Clone for OperatorCredentials
Source§impl Debug for OperatorCredentials
impl Debug for OperatorCredentials
Source§impl<'de> Deserialize<'de> for OperatorCredentials
impl<'de> Deserialize<'de> for OperatorCredentials
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for OperatorCredentials
impl Freeze for OperatorCredentials
impl RefUnwindSafe for OperatorCredentials
impl Send for OperatorCredentials
impl Sync for OperatorCredentials
impl Unpin for OperatorCredentials
impl UnsafeUnpin for OperatorCredentials
impl UnwindSafe for OperatorCredentials
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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