pub struct RefUpdatePayload {
pub ref_name: String,
pub old_ref_state_id: Option<ObjectId>,
pub new_ref_state_id: ObjectId,
pub new_target_object_id: ObjectId,
pub update_seq: u64,
pub created_at: u64,
pub author_key_id: String,
}Expand description
Ref-update event payload stored inline in ref logs.
Fields§
§ref_name: StringRef name.
old_ref_state_id: Option<ObjectId>Previous RefState ID.
new_ref_state_id: ObjectIdNew RefState ID.
new_target_object_id: ObjectIdNew target object ID.
update_seq: u64Update sequence.
created_at: u64Authoritative event creation timestamp.
Author key ID.
Implementations§
Source§impl RefUpdatePayload
impl RefUpdatePayload
Sourcepub fn decode_canonical(bytes: &[u8]) -> Result<Self>
pub fn decode_canonical(bytes: &[u8]) -> Result<Self>
Decode a RefUpdate payload from Prikk canonical TLV bytes.
Trait Implementations§
Source§impl CanonicalEncode for RefUpdatePayload
impl CanonicalEncode for RefUpdatePayload
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 RefUpdatePayload
impl Clone for RefUpdatePayload
Source§fn clone(&self) -> RefUpdatePayload
fn clone(&self) -> RefUpdatePayload
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 RefUpdatePayload
impl Debug for RefUpdatePayload
impl Eq for RefUpdatePayload
Source§impl PartialEq for RefUpdatePayload
impl PartialEq for RefUpdatePayload
Source§fn eq(&self, other: &RefUpdatePayload) -> bool
fn eq(&self, other: &RefUpdatePayload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RefUpdatePayload
Auto Trait Implementations§
impl Freeze for RefUpdatePayload
impl RefUnwindSafe for RefUpdatePayload
impl Send for RefUpdatePayload
impl Sync for RefUpdatePayload
impl Unpin for RefUpdatePayload
impl UnsafeUnpin for RefUpdatePayload
impl UnwindSafe for RefUpdatePayload
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