pub struct HostAuth {Show 20 fields
pub id: String,
pub index: String,
pub provider: String,
pub file_name: String,
pub label: String,
pub status: String,
pub status_message: String,
pub disabled: bool,
pub unavailable: bool,
pub attributes: BTreeMap<String, String>,
pub metadata: Map<String, Value>,
pub success: i64,
pub failed: i64,
pub recent_requests: Vec<(String, i64, i64)>,
pub created_at: GoTime,
pub updated_at: GoTime,
pub last_refreshed_at: GoTime,
pub next_retry_after: GoTime,
pub account_type: String,
pub account: String,
}Expand description
A credential as the manager holds it (the Go coreauth.Auth fields the plugin
host reads).
Fields§
§id: String§index: StringGo Auth.Index (EnsureIndex).
provider: String§file_name: String§label: String§status: StringGo Auth.Status: active, disabled, error, …
status_message: String§disabled: bool§attributes: BTreeMap<String, String>§metadata: Map<String, Value>§success: i64§failed: i64§recent_requests: Vec<(String, i64, i64)>Go RecentRequestsSnapshot: bucket label, successes, failures, oldest first.
created_at: GoTime§updated_at: GoTime§last_refreshed_at: GoTime§next_retry_after: GoTime§account_type: StringGo Auth.AccountInfo().
account: StringTrait Implementations§
impl StructuralPartialEq for HostAuth
Auto Trait Implementations§
impl Forget for HostAuth
impl Freeze for HostAuth
impl Move for HostAuth
impl RefUnwindSafe for HostAuth
impl Send for HostAuth
impl Sync for HostAuth
impl Unpin for HostAuth
impl UnsafeUnpin for HostAuth
impl UnwindSafe for HostAuth
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<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