pub struct SigningKeyRotation {
pub previous_key_id: Option<String>,
pub new_key_id: String,
pub public_key: String,
pub rotated_at: DateTime<Utc>,
}Expand description
The journaled record of a signing-key rotation (R0.9 wave 3): the
output payload of a RunEventKind::SigningKeyRotated event in the
deployment’s receipts journal. Journaling the new key id is what makes
“which key signed what, from when” a chained fact rather than a
registry note; the public half travels with it so the lineage is
self-describing.
Fields§
§previous_key_id: Option<String>The key id that signed until now. None on genesis — the first
key a deployment ever generated.
new_key_id: StringThe new key id (content address of public_key).
public_key: StringThe new public key, lowercase hex.
rotated_at: DateTime<Utc>When the rotation happened, read from the server’s clock.
Trait Implementations§
Source§impl Clone for SigningKeyRotation
impl Clone for SigningKeyRotation
Source§fn clone(&self) -> SigningKeyRotation
fn clone(&self) -> SigningKeyRotation
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 SigningKeyRotation
impl Debug for SigningKeyRotation
Source§impl<'de> Deserialize<'de> for SigningKeyRotation
impl<'de> Deserialize<'de> for SigningKeyRotation
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 SigningKeyRotation
impl PartialEq for SigningKeyRotation
Source§impl Serialize for SigningKeyRotation
impl Serialize for SigningKeyRotation
impl StructuralPartialEq for SigningKeyRotation
Auto Trait Implementations§
impl Freeze for SigningKeyRotation
impl RefUnwindSafe for SigningKeyRotation
impl Send for SigningKeyRotation
impl Sync for SigningKeyRotation
impl Unpin for SigningKeyRotation
impl UnsafeUnpin for SigningKeyRotation
impl UnwindSafe for SigningKeyRotation
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