pub struct VendorStatus {
pub id: &'static str,
pub name: &'static str,
pub short_name: &'static str,
pub kind: AuthKind,
pub enabled: bool,
pub configured: bool,
pub needs_credential: bool,
pub env: String,
pub login: &'static str,
}Expand description
One provider’s row in the catalog.
Fields§
§id: &'static strMachine id, the same string usage --json keys its entries by.
name: &'static strCanonical product name, from VendorId::display_name.
short_name: &'static str§kind: AuthKind§enabled: boolWhether config has this provider switched on.
configured: boolWhether this provider has everything it needs to be fetched. Always
true when needs_credential is false.
needs_credential: boolWhether the provider has a credential to be missing at all. Antigravity has none: there is no file, no key and no login — the binary probes whichever local product is running — so “not configured” is not a state it can be in, and a frontend must not offer to fix one.
env: StringEffective environment variable holding this provider’s key, honoring an
api_key_env override; empty when the provider takes no key.
login: &'static strCommand that signs this provider in; empty when signing in happens in a desktop app’s own window.
Trait Implementations§
Source§impl Clone for VendorStatus
impl Clone for VendorStatus
Source§fn clone(&self) -> VendorStatus
fn clone(&self) -> VendorStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VendorStatus
impl Debug for VendorStatus
impl Eq for VendorStatus
Source§impl PartialEq for VendorStatus
impl PartialEq for VendorStatus
Source§impl Serialize for VendorStatus
impl Serialize for VendorStatus
impl StructuralPartialEq for VendorStatus
Auto Trait Implementations§
impl Freeze for VendorStatus
impl RefUnwindSafe for VendorStatus
impl Send for VendorStatus
impl Sync for VendorStatus
impl Unpin for VendorStatus
impl UnsafeUnpin for VendorStatus
impl UnwindSafe for VendorStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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