pub enum AuthMode {
Subscription,
ApiKey,
Free,
Unknown,
}Expand description
How a worker authenticates (CONTEXT.md §9). Surfaced by doctor so the
user always knows which workers are free and which are metered.
Variants§
Subscription
Honors an existing subscription login (Claude Pro/Max, Grok, ChatGPT). Not metered per-call.
ApiKey
Uses the user’s own API key. Always metered.
Free
A free tier (e.g. a conductor backend’s daily allowance).
Unknown
Could not be determined.
Implementations§
Trait Implementations§
impl Copy for AuthMode
Source§impl<'de> Deserialize<'de> for AuthMode
impl<'de> Deserialize<'de> for AuthMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AuthMode
Source§impl Serialize for AuthMode
impl Serialize for AuthMode
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AuthMode
Auto Trait Implementations§
impl Forget for AuthMode
impl Freeze for AuthMode
impl Move for AuthMode
impl RefUnwindSafe for AuthMode
impl Send for AuthMode
impl Sync for AuthMode
impl Unpin for AuthMode
impl UnsafeUnpin for AuthMode
impl UnwindSafe for AuthMode
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