pub enum AccountAuth {
BaseUrl,
Token,
}Expand description
How an account proves who it is, which is the only thing that changes what preflight tells you to do about a failed one. Derived from the provider plus the account’s merged env; it carries the distinction and none of the secret.
Variants§
BaseUrl
The account authenticates with a flat token beside a flat
base_url (the base-url providers). Repaired by editing the
account block, which needs a restart; the 60 s usage poll
recovers a transient bail.
Token
The account’s credential is a setup token, stamped onto
CLAUDE_CODE_OAUTH_TOKEN - the only credential an Anthropic
account has. Repaired by minting or re-minting the token on the
account block, which needs a restart; the 60 s usage poll
recovers a transient bail. An account whose block carries no
token classifies here too: the repair it needs is the same.
Trait Implementations§
Source§impl Clone for AccountAuth
impl Clone for AccountAuth
Source§fn clone(&self) -> AccountAuth
fn clone(&self) -> AccountAuth
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AccountAuth
Source§impl Debug for AccountAuth
impl Debug for AccountAuth
Source§impl<'de> Deserialize<'de> for AccountAuth
impl<'de> Deserialize<'de> for AccountAuth
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountAuth, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountAuth, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for AccountAuth
Source§impl PartialEq for AccountAuth
impl PartialEq for AccountAuth
Source§impl Serialize for AccountAuth
impl Serialize for AccountAuth
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for AccountAuth
Auto Trait Implementations§
impl Freeze for AccountAuth
impl RefUnwindSafe for AccountAuth
impl Send for AccountAuth
impl Sync for AccountAuth
impl Unpin for AccountAuth
impl UnsafeUnpin for AccountAuth
impl UnwindSafe for AccountAuth
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
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<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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