#[non_exhaustive]pub struct AuthCapabilities {
pub terminal: bool,
pub meta: Option<Map<String, Value>>,
}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: boolWhether the client supports terminal authentication methods.
When true, the agent may include terminal entries in its authentication methods.
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 AuthCapabilities
impl AuthCapabilities
pub fn new() -> AuthCapabilities
unstable_auth_methods only.Sourcepub fn terminal(self, terminal: bool) -> AuthCapabilities
Available on crate feature unstable_auth_methods only.
pub fn terminal(self, terminal: bool) -> AuthCapabilities
unstable_auth_methods only.Whether the client supports terminal authentication methods.
When true, the agent may include AuthMethod::Terminal
entries in its authentication methods.
Sourcepub fn meta(self, meta: impl IntoOption<Map<String, Value>>) -> AuthCapabilities
Available on crate feature unstable_auth_methods only.
pub fn meta(self, meta: impl IntoOption<Map<String, Value>>) -> AuthCapabilities
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<AuthCapabilities, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthCapabilities, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for AuthCapabilities
Source§impl IntoV2 for AuthCapabilities
Available on crate feature unstable_auth_methods only.
impl IntoV2 for AuthCapabilities
unstable_auth_methods only.Source§type Output = AuthCapabilities
type Output = AuthCapabilities
Source§fn into_v2(
self,
) -> Result<<AuthCapabilities as IntoV2>::Output, ProtocolConversionError>
fn into_v2( self, ) -> Result<<AuthCapabilities as IntoV2>::Output, ProtocolConversionError>
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 ==.