#[non_exhaustive]pub struct AuthCapabilities {
pub terminal: bool,
pub meta: Option<Meta>,
}Expand description
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.
The client should set this to true only when it can reproduce the
configured agent invocation in an interactive terminal. When true, 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
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds an empty AuthCapabilities; use builder methods to advertise supported sub-capabilities.
Sourcepub fn terminal(self, terminal: bool) -> Self
pub fn terminal(self, terminal: bool) -> Self
Whether the client supports terminal authentication methods.
The client should set this to true only when it can reproduce the
configured agent invocation in an interactive terminal. When true, the
agent may include AuthMethod::Terminal entries in its authentication
methods.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
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 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§impl Serialize for AuthCapabilities
impl Serialize for AuthCapabilities
impl StructuralPartialEq for AuthCapabilities
Auto Trait Implementations§
impl Freeze for AuthCapabilities
impl RefUnwindSafe for AuthCapabilities
impl Send for AuthCapabilities
impl Sync for AuthCapabilities
impl Unpin for AuthCapabilities
impl UnsafeUnpin for AuthCapabilities
impl UnwindSafe for AuthCapabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.