pub struct StoredEnvSecret {
pub record: EnvSecretRecord,
pub envelope: SealedCredential,
}Expand description
What both store backends hold for one environment secret: the metadata record plus the sealed value. Plaintext on neither backend, ever — a Postgres dump of this row contains no secret (the broker’s custody shape, verbatim).
Fields§
§record: EnvSecretRecordThe metadata record (safe to serve and journal).
envelope: SealedCredentialThe sealed value — the broker’s envelope construction with the scoped secret id as associated data.
Trait Implementations§
Source§impl Clone for StoredEnvSecret
impl Clone for StoredEnvSecret
Source§impl Debug for StoredEnvSecret
impl Debug for StoredEnvSecret
Source§impl<'de> Deserialize<'de> for StoredEnvSecret
impl<'de> Deserialize<'de> for StoredEnvSecret
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 StoredEnvSecret
impl PartialEq for StoredEnvSecret
Source§impl Serialize for StoredEnvSecret
impl Serialize for StoredEnvSecret
impl StructuralPartialEq for StoredEnvSecret
Auto Trait Implementations§
impl Freeze for StoredEnvSecret
impl RefUnwindSafe for StoredEnvSecret
impl Send for StoredEnvSecret
impl Sync for StoredEnvSecret
impl Unpin for StoredEnvSecret
impl UnsafeUnpin for StoredEnvSecret
impl UnwindSafe for StoredEnvSecret
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