pub struct SecretMeta {Show 14 fields
pub id: Option<i64>,
pub key: String,
pub name: Option<String>,
pub description: Option<String>,
pub category: Option<String>,
pub is_credential: Option<bool>,
pub is_card: Option<bool>,
pub username: Option<String>,
pub card_last4: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub last_used_at: Option<String>,
pub use_count: Option<i64>,
pub extra: Extra,
}Expand description
Secret metadata (api/v1/secrets.rs::meta) — the value is never returned.
Fields§
§id: Option<i64>§key: StringThe unique TEXT key the secret is addressed by.
name: Option<String>Cloud-contract alias of key.
description: Option<String>§category: Option<String>e.g. credentials | card | free-form.
is_credential: Option<bool>§is_card: Option<bool>§username: Option<String>Credential secrets only: the (non-secret) username half.
card_last4: Option<String>Card secrets only: last 4 digits.
created_at: Option<String>§updated_at: Option<String>§last_used_at: Option<String>§use_count: Option<i64>§extra: ExtraTrait Implementations§
Source§impl Clone for SecretMeta
impl Clone for SecretMeta
Source§fn clone(&self) -> SecretMeta
fn clone(&self) -> SecretMeta
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 SecretMeta
impl Debug for SecretMeta
Source§impl Default for SecretMeta
impl Default for SecretMeta
Source§fn default() -> SecretMeta
fn default() -> SecretMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecretMetawhere
SecretMeta: Default,
impl<'de> Deserialize<'de> for SecretMetawhere
SecretMeta: Default,
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 SecretMeta
impl RefUnwindSafe for SecretMeta
impl Send for SecretMeta
impl Sync for SecretMeta
impl Unpin for SecretMeta
impl UnsafeUnpin for SecretMeta
impl UnwindSafe for SecretMeta
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