#[non_exhaustive]pub struct AuthCapabilities {
pub terminal: Option<TerminalAuthCapabilities>,
pub meta: Option<Meta>,
}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.
Authentication capabilities supported by the client.
Advertised during initialization to inform the agent which authentication method types the client can handle. This governs opt-in types that require additional client-side support.
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.terminal: Option<TerminalAuthCapabilities>Whether the client supports terminal authentication methods.
Optional. Omitted or null both mean the client does not advertise support.
Supplying {} means the agent may include terminal entries in its authentication methods.
meta: Option<Meta>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 AuthCapabilities
impl AuthCapabilities
pub fn new() -> Self
unstable_auth_methods only.Sourcepub fn terminal(
self,
terminal: impl IntoOption<TerminalAuthCapabilities>,
) -> Self
Available on crate feature unstable_auth_methods only.
pub fn terminal( self, terminal: impl IntoOption<TerminalAuthCapabilities>, ) -> Self
unstable_auth_methods only.Whether the client supports terminal authentication methods.
Omitted or null both mean the client does not advertise support.
Supplying {} means the agent may include AuthMethod::Terminal entries in its authentication methods.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
Available on crate feature unstable_auth_methods only.
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
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 AuthCapabilities
impl Clone for AuthCapabilities
Source§fn clone(&self) -> AuthCapabilities
fn clone(&self) -> AuthCapabilities
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 AuthCapabilities
impl Debug for AuthCapabilities
Source§impl Default for AuthCapabilities
impl Default for AuthCapabilities
Source§fn default() -> AuthCapabilities
fn default() -> AuthCapabilities
Source§impl<'de> Deserialize<'de> for AuthCapabilities
impl<'de> Deserialize<'de> for AuthCapabilities
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>,
impl Eq for AuthCapabilities
Source§impl IntoV1 for AuthCapabilities
Available on crate feature unstable_auth_methods only.
impl IntoV1 for AuthCapabilities
unstable_auth_methods only.Source§impl JsonSchema for AuthCapabilities
impl JsonSchema for AuthCapabilities
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 AuthCapabilities
impl PartialEq for AuthCapabilities
Source§fn eq(&self, other: &AuthCapabilities) -> bool
fn eq(&self, other: &AuthCapabilities) -> bool
self and other values to be equal, and is used by ==.