pub struct RefStatePayload {
pub ref_name: String,
pub kind: RefKind,
pub target_object_id: ObjectId,
pub update_seq: u64,
pub previous_ref_state_id: Option<ObjectId>,
pub required_attestation_ids: Vec<ObjectId>,
}Expand description
RefState payload stored as a content-addressed object.
Fields§
§ref_name: StringHuman-readable ref name.
kind: RefKindRef kind.
target_object_id: ObjectIdTarget object ID.
update_seq: u64Monotonic sequence number.
previous_ref_state_id: Option<ObjectId>Previous ref-state object ID.
required_attestation_ids: Vec<ObjectId>Required attestation IDs that justified this state.
Implementations§
Source§impl RefStatePayload
impl RefStatePayload
Sourcepub fn decode_canonical(bytes: &[u8]) -> Result<Self>
pub fn decode_canonical(bytes: &[u8]) -> Result<Self>
Decode a RefState payload from Prikk canonical TLV bytes.
Trait Implementations§
Source§impl CanonicalEncode for RefStatePayload
impl CanonicalEncode for RefStatePayload
Source§fn encode_canonical(&self, writer: &mut CanonicalWriter) -> Result<()>
fn encode_canonical(&self, writer: &mut CanonicalWriter) -> Result<()>
Encode this value into canonical bytes.
Source§impl Clone for RefStatePayload
impl Clone for RefStatePayload
Source§fn clone(&self) -> RefStatePayload
fn clone(&self) -> RefStatePayload
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 RefStatePayload
impl Debug for RefStatePayload
impl Eq for RefStatePayload
Source§impl PartialEq for RefStatePayload
impl PartialEq for RefStatePayload
Source§fn eq(&self, other: &RefStatePayload) -> bool
fn eq(&self, other: &RefStatePayload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RefStatePayload
Auto Trait Implementations§
impl Freeze for RefStatePayload
impl RefUnwindSafe for RefStatePayload
impl Send for RefStatePayload
impl Sync for RefStatePayload
impl Unpin for RefStatePayload
impl UnsafeUnpin for RefStatePayload
impl UnwindSafe for RefStatePayload
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