pub struct SecretEntry {
pub label: String,
pub kind: SecretKind,
pub policy: AccessPolicy,
pub description: Option<String>,
pub disabled: bool,
}Expand description
Metadata envelope stored alongside the secret value(s) in the vault.
This is JSON-serialized and stored under the key cred:<name>.
The actual sensitive values live under val:<name> (and for
UsernamePassword, also val:<name>:user).
Fields§
§label: StringHuman-readable label (e.g. “Anthropic API key”).
kind: SecretKindWhat kind of credential this is.
policy: AccessPolicyWho (or what) is allowed to read the secret.
description: Option<String>Optional free-form description / notes.
disabled: boolWhen true, the credential is listed but the agent cannot read its value. The user can re-enable it from the TUI.
Trait Implementations§
Source§impl Clone for SecretEntry
impl Clone for SecretEntry
Source§fn clone(&self) -> SecretEntry
fn clone(&self) -> SecretEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 SecretEntry
impl Debug for SecretEntry
Source§impl<'de> Deserialize<'de> for SecretEntry
impl<'de> Deserialize<'de> for SecretEntry
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 SecretEntry
impl RefUnwindSafe for SecretEntry
impl Send for SecretEntry
impl Sync for SecretEntry
impl Unpin for SecretEntry
impl UnsafeUnpin for SecretEntry
impl UnwindSafe for SecretEntry
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