pub struct Secret {
pub id: u64,
pub name: String,
pub description: String,
pub sites: Vec<String>,
pub hosts: Vec<String>,
pub updated_at: DateTime<Utc>,
}Expand description
A secret in a person’s or a group’s store, used by name: a password, an API key, anything an
agent needs without ever seeing it. Its value is never returned. A Termite repository
switches on the secrets its machines get (termite::versioning::Repository::set_secret).
Fields§
§id: u64§name: StringLike an environment variable: capital letters, digits and underscores, starting with a letter. Programs on a machine see it under this name, holding a stand in.
description: StringWhat it is, which the agent reads.
sites: Vec<String>Sites it can be typed into, as hosts. Empty means any.
hosts: Vec<String>API hosts programs can send it to. Empty means programs can’t use it.
updated_at: DateTime<Utc>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Secret
impl<'de> Deserialize<'de> for Secret
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
impl StructuralPartialEq for Secret
Auto Trait Implementations§
impl Forget for Secret
impl Freeze for Secret
impl Move for Secret
impl RefUnwindSafe for Secret
impl Send for Secret
impl Sync for Secret
impl Unpin for Secret
impl UnsafeUnpin for Secret
impl UnwindSafe for Secret
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