#[non_exhaustive]pub struct AuthAccount {
pub label: String,
pub active: Option<bool>,
pub name: Option<String>,
pub email: Option<String>,
pub organization: Option<String>,
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.
An account or credential the agent has configured, such as a signed-in user account or an API key.
All fields are display information only. Clients MUST NOT use them as stable account identifiers, and SHOULD NOT log them or send them elsewhere, such as to telemetry.
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.label: StringHuman-readable name for the account, suitable for display on its own,
for example Claude Max, OpenAI API key, or Vertex AI.
active: Option<bool>Whether the agent currently uses this account by default.
Several accounts MAY be active, for example one per provider.
Optional. Omitted and null are equivalent and mean the agent does not indicate whether this account is in effect.
name: Option<String>Display name of the user, such as a username or full name.
Optional. Omitted and null are equivalent and mean no name is reported.
email: Option<String>Email address of the user.
Optional. Omitted and null are equivalent and mean no email is reported.
organization: Option<String>Display name of the organization, team, or workspace the account is using.
Optional. Omitted and null are equivalent and mean no organization is reported.
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional
metadata to their interactions. Omitted and null are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
See protocol docs: Extensibility
Implementations§
Source§impl AuthAccount
impl AuthAccount
Sourcepub fn new(label: impl Into<String>) -> Self
Available on crate feature unstable_auth_status only.
pub fn new(label: impl Into<String>) -> Self
unstable_auth_status only.Builds AuthAccount with the required fields set. Optional fields start unset or empty.
Sourcepub fn active(self, active: impl IntoOption<bool>) -> Self
Available on crate feature unstable_auth_status only.
pub fn active(self, active: impl IntoOption<bool>) -> Self
unstable_auth_status only.Whether the agent currently uses this account by default.
Sourcepub fn name(self, name: impl IntoOption<String>) -> Self
Available on crate feature unstable_auth_status only.
pub fn name(self, name: impl IntoOption<String>) -> Self
unstable_auth_status only.Display name of the user, such as a username or full name.
Sourcepub fn email(self, email: impl IntoOption<String>) -> Self
Available on crate feature unstable_auth_status only.
pub fn email(self, email: impl IntoOption<String>) -> Self
unstable_auth_status only.Email address of the user.
Sourcepub fn organization(self, organization: impl IntoOption<String>) -> Self
Available on crate feature unstable_auth_status only.
pub fn organization(self, organization: impl IntoOption<String>) -> Self
unstable_auth_status only.Display name of the organization, team, or workspace the account is using.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
Available on crate feature unstable_auth_status only.
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
unstable_auth_status only.The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT assign meaning to keys they do not recognize.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for AuthAccount
impl Clone for AuthAccount
Source§impl Debug for AuthAccount
impl Debug for AuthAccount
Source§impl<'de> Deserialize<'de> for AuthAccount
impl<'de> Deserialize<'de> for AuthAccount
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 AuthAccount
Source§impl JsonSchema for AuthAccount
impl JsonSchema for AuthAccount
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 AuthAccount
impl PartialEq for AuthAccount
Source§impl Serialize for AuthAccount
impl Serialize for AuthAccount
impl StructuralPartialEq for AuthAccount
Auto Trait Implementations§
impl Freeze for AuthAccount
impl RefUnwindSafe for AuthAccount
impl Send for AuthAccount
impl Sync for AuthAccount
impl Unpin for AuthAccount
impl UnsafeUnpin for AuthAccount
impl UnwindSafe for AuthAccount
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.