pub struct EnvSecretRecord {
pub name: String,
pub environment: EnvironmentTag,
pub set_by: ProvenanceAuthor,
pub created_at: DateTime<Utc>,
pub rotated_at: Option<DateTime<Utc>>,
}Expand description
The public record of one environment secret: metadata by construction, safe to serve and journal. Rotation is replacement beneath the stable scoped name — what a run’s evidence pins is the scoped name, not the value of the moment (the broker’s “rotate a credential without redeploying” argument applied to static material).
Fields§
§name: StringThe secret’s name within its scope.
environment: EnvironmentTagThe environment the secret is scoped to. Enforcement, not
convention: resolution serves name@{environment} and nothing
else.
set_by: ProvenanceAuthorWho set (or last rotated) the secret (human:{id}).
created_at: DateTime<Utc>When the secret was first set.
rotated_at: Option<DateTime<Utc>>When the secret was last rotated beneath the stable scoped name. Absent when never rotated.
Trait Implementations§
Source§impl Clone for EnvSecretRecord
impl Clone for EnvSecretRecord
Source§impl Debug for EnvSecretRecord
impl Debug for EnvSecretRecord
Source§impl<'de> Deserialize<'de> for EnvSecretRecord
impl<'de> Deserialize<'de> for EnvSecretRecord
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
Source§impl PartialEq for EnvSecretRecord
impl PartialEq for EnvSecretRecord
Source§impl Serialize for EnvSecretRecord
impl Serialize for EnvSecretRecord
impl StructuralPartialEq for EnvSecretRecord
Auto Trait Implementations§
impl Freeze for EnvSecretRecord
impl RefUnwindSafe for EnvSecretRecord
impl Send for EnvSecretRecord
impl Sync for EnvSecretRecord
impl Unpin for EnvSecretRecord
impl UnsafeUnpin for EnvSecretRecord
impl UnwindSafe for EnvSecretRecord
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