#[non_exhaustive]pub enum LoginMethod {
ClaudeAi,
Console,
Gateway,
Other(String),
}Expand description
forceLoginMethod.
Docs: forceLoginMethod.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ClaudeAi
Claude.ai sign-in.
Console
Claude Console sign-in.
Gateway
Claude Code sends people to a cloud gateway instead of a first-party login.
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for LoginMethod
impl AsRef<str> for LoginMethod
Source§impl Clone for LoginMethod
impl Clone for LoginMethod
Source§impl Debug for LoginMethod
impl Debug for LoginMethod
Source§impl<'de> Deserialize<'de> for LoginMethod
impl<'de> Deserialize<'de> for LoginMethod
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LoginMethod
impl Display for LoginMethod
impl Eq for LoginMethod
Source§impl From<&str> for LoginMethod
impl From<&str> for LoginMethod
Source§impl From<String> for LoginMethod
impl From<String> for LoginMethod
Source§impl Hash for LoginMethod
impl Hash for LoginMethod
Source§impl Ord for LoginMethod
impl Ord for LoginMethod
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LoginMethod
impl PartialEq for LoginMethod
Source§impl PartialOrd for LoginMethod
impl PartialOrd for LoginMethod
Source§impl Serialize for LoginMethod
impl Serialize for LoginMethod
impl StructuralPartialEq for LoginMethod
Auto Trait Implementations§
impl Forget for LoginMethod
impl Freeze for LoginMethod
impl Move for LoginMethod
impl RefUnwindSafe for LoginMethod
impl Send for LoginMethod
impl Sync for LoginMethod
impl Unpin for LoginMethod
impl UnsafeUnpin for LoginMethod
impl UnwindSafe for LoginMethod
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