pub struct Record {
pub record_type: u8,
pub key: [u8; 32],
pub version: [u8; 16],
pub created_at: i128,
pub expires_at: i128,
pub payload: Value,
pub signature: Vec<u8>,
}Expand description
Mirrors macula_record.erl’s envelope map (type/key/version/
created_at/expires_at/payload/signature). subject_id is not carried —
neither record type this module builds uses it.
Fields§
§record_type: u8§key: [u8; 32]32B: envelope signer’s Ed25519 pubkey.
version: [u8; 16]16B: UUIDv7.
created_at: i128ms since epoch.
expires_at: i128ms since epoch.
payload: Value§signature: Vec<u8>64B once sign has been called; empty beforehand.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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