pub struct RotationPayload {
pub kind: String,
pub envelope: RotationEnvelope,
}Expand description
Canonical shape of the identity.rotate event payload.
Stored at event.payload as { "kind": "identity.rotate", "envelope": <serialized RotationEnvelope> }. The verifier extracts and verifies
the envelope before adopting new_pubkey.
Fields§
§kind: StringAlways IDENTITY_ROTATE_PAYLOAD_KIND — gives a fast, free
discriminator on the JSON without committing to a cortex-core
enum extension.
envelope: RotationEnvelopeThe signed rotation envelope (old → new pubkey, signed by old).
Implementations§
Source§impl RotationPayload
impl RotationPayload
Sourcepub fn new(envelope: RotationEnvelope) -> Self
pub fn new(envelope: RotationEnvelope) -> Self
Wrap a freshly-signed envelope in the canonical payload shape.
Trait Implementations§
Source§impl Clone for RotationPayload
impl Clone for RotationPayload
Source§fn clone(&self) -> RotationPayload
fn clone(&self) -> RotationPayload
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 RotationPayload
impl Debug for RotationPayload
Source§impl<'de> Deserialize<'de> for RotationPayload
impl<'de> Deserialize<'de> for RotationPayload
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 RotationPayload
impl PartialEq for RotationPayload
Source§fn eq(&self, other: &RotationPayload) -> bool
fn eq(&self, other: &RotationPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RotationPayload
impl Serialize for RotationPayload
impl Eq for RotationPayload
impl StructuralPartialEq for RotationPayload
Auto Trait Implementations§
impl Freeze for RotationPayload
impl RefUnwindSafe for RotationPayload
impl Send for RotationPayload
impl Sync for RotationPayload
impl Unpin for RotationPayload
impl UnsafeUnpin for RotationPayload
impl UnwindSafe for RotationPayload
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