pub enum AuthMethod {
Agent(AuthMethodAgent),
Terminal(AuthMethodTerminal),
}Expand description
The auth method the agent advertises. The schema
is a discriminated union (AuthMethodAgent /
AuthMethodTerminal); the typed form is the
same enum shape.
The schema’s $defs.AuthMethod definition is
exhaustive over the two variants; a null
payload is not a valid AuthMethod.
Variants§
Agent(AuthMethodAgent)
An agent-to-agent auth method.
Terminal(AuthMethodTerminal)
A terminal-based auth method.
Trait Implementations§
Source§impl Clone for AuthMethod
impl Clone for AuthMethod
Source§impl Debug for AuthMethod
impl Debug for AuthMethod
Source§impl<'de> Deserialize<'de> for AuthMethod
impl<'de> Deserialize<'de> for AuthMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AuthMethod
Source§impl PartialEq for AuthMethod
impl PartialEq for AuthMethod
Source§impl Serialize for AuthMethod
impl Serialize for AuthMethod
impl StructuralPartialEq for AuthMethod
Auto Trait Implementations§
impl Freeze for AuthMethod
impl RefUnwindSafe for AuthMethod
impl Send for AuthMethod
impl Sync for AuthMethod
impl Unpin for AuthMethod
impl UnsafeUnpin for AuthMethod
impl UnwindSafe for AuthMethod
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