#[non_exhaustive]pub struct AuthMethodTerminal {
pub id: AuthMethodId,
pub name: String,
pub description: Option<String>,
pub args: Vec<String>,
pub env: HashMap<String, String>,
pub meta: Option<Map<String, Value>>,
}unstable_protocol_v2 only.Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Terminal-based authentication method.
The client runs an interactive terminal for the user to authenticate via a TUI.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: AuthMethodIdUnique identifier for this authentication method.
name: StringHuman-readable name of the authentication method.
description: Option<String>Optional description providing more details about this authentication method.
args: Vec<String>Additional arguments to pass when running the agent binary for terminal auth.
env: HashMap<String, String>Additional environment variables to set when running the agent binary for terminal auth.
meta: Option<Map<String, Value>>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl AuthMethodTerminal
impl AuthMethodTerminal
pub fn new( id: impl Into<AuthMethodId>, name: impl Into<String>, ) -> AuthMethodTerminal
unstable_auth_methods only.Sourcepub fn args(self, args: Vec<String>) -> AuthMethodTerminal
Available on crate feature unstable_auth_methods only.
pub fn args(self, args: Vec<String>) -> AuthMethodTerminal
unstable_auth_methods only.Additional arguments to pass when running the agent binary for terminal auth.
Sourcepub fn env(self, env: HashMap<String, String>) -> AuthMethodTerminal
Available on crate feature unstable_auth_methods only.
pub fn env(self, env: HashMap<String, String>) -> AuthMethodTerminal
unstable_auth_methods only.Additional environment variables to set when running the agent binary for terminal auth.
Sourcepub fn description(
self,
description: impl IntoOption<String>,
) -> AuthMethodTerminal
Available on crate feature unstable_auth_methods only.
pub fn description( self, description: impl IntoOption<String>, ) -> AuthMethodTerminal
unstable_auth_methods only.Optional description providing more details about this authentication method.
Sourcepub fn meta(
self,
meta: impl IntoOption<Map<String, Value>>,
) -> AuthMethodTerminal
Available on crate feature unstable_auth_methods only.
pub fn meta( self, meta: impl IntoOption<Map<String, Value>>, ) -> AuthMethodTerminal
unstable_auth_methods only.The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for AuthMethodTerminal
impl Clone for AuthMethodTerminal
Source§fn clone(&self) -> AuthMethodTerminal
fn clone(&self) -> AuthMethodTerminal
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 AuthMethodTerminal
impl Debug for AuthMethodTerminal
Source§impl<'de> Deserialize<'de> for AuthMethodTerminal
impl<'de> Deserialize<'de> for AuthMethodTerminal
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthMethodTerminal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthMethodTerminal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for AuthMethodTerminal
Source§impl IntoV1 for AuthMethodTerminal
Available on crate feature unstable_auth_methods only.
impl IntoV1 for AuthMethodTerminal
unstable_auth_methods only.Source§type Output = AuthMethodTerminal
type Output = AuthMethodTerminal
Source§fn into_v1(
self,
) -> Result<<AuthMethodTerminal as IntoV1>::Output, ProtocolConversionError>
fn into_v1( self, ) -> Result<<AuthMethodTerminal as IntoV1>::Output, ProtocolConversionError>
Source§impl JsonSchema for AuthMethodTerminal
impl JsonSchema for AuthMethodTerminal
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for AuthMethodTerminal
impl PartialEq for AuthMethodTerminal
Source§fn eq(&self, other: &AuthMethodTerminal) -> bool
fn eq(&self, other: &AuthMethodTerminal) -> bool
self and other values to be equal, and is used by ==.