pub struct AcpAuthClient {
pub id: String,
pub token: Option<String>,
pub token_vault_key: Option<String>,
}Expand description
A single named ACP HTTP/WS bearer-token credential (#5868).
Each entry authenticates one Authorization: Bearer <token> value and, on match, becomes
the request’s owner identity for ACP session-persistence scoping (owner_key). Exactly one
of token / token_vault_key must be set — token is inline (parity with the legacy
[acp] auth_token field), token_vault_key resolves the secret from the age vault at
startup, mirroring [serve] auth_token_vault_key.
Fields§
§id: StringStable owner label surviving token rotation. Must be non-empty, unique among
auth_clients, and must not be "default" or "acp-local" (reserved sentinels).
token: Option<String>Inline bearer token. Mutually exclusive with token_vault_key.
token_vault_key: Option<String>Vault key to resolve the bearer token from at startup. Mutually exclusive with token.
Trait Implementations§
Source§impl Clone for AcpAuthClient
impl Clone for AcpAuthClient
Source§fn clone(&self) -> AcpAuthClient
fn clone(&self) -> AcpAuthClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AcpAuthClient
impl Debug for AcpAuthClient
Source§impl<'de> Deserialize<'de> for AcpAuthClient
impl<'de> Deserialize<'de> for AcpAuthClient
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AcpAuthClient
impl RefUnwindSafe for AcpAuthClient
impl Send for AcpAuthClient
impl Sync for AcpAuthClient
impl Unpin for AcpAuthClient
impl UnsafeUnpin for AcpAuthClient
impl UnwindSafe for AcpAuthClient
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
Mutably borrows from an owned value. Read more