pub struct Record {
pub record_type: RecordType,
pub version: [u8; 16],
pub created_at: u64,
pub expires_at: u64,
pub payload: Value,
pub subject: Option<Vec<u8>>,
pub schema: u16,
pub lifetime_class: u8,
pub ext: Option<Value>,
pub signed: Option<Signed>,
}Expand description
A record: unsigned as a builder returns it, or signed or verified, when
signed holds what signing or verifying gave. The payload is a map.
subject names a domain record’s subject, None for none and on every
other type. schema and lifetime_class are the tbs’s schema version and
lifetime row, which a builder sets to SCHEMA and the type’s own row;
ext is the tbs’s ext map, None for none.
Fields§
§record_type: RecordType§version: [u8; 16]§created_at: u64§expires_at: u64§payload: Value§subject: Option<Vec<u8>>§schema: u16§lifetime_class: u8§ext: Option<Value>§signed: Option<Signed>Trait Implementations§
impl StructuralPartialEq for Record
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<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