pub struct LedgerEntry {
pub id: String,
pub ref_: String,
pub commit: Oid,
pub fields: Vec<(String, Vec<u8>)>,
}Expand description
A single record in the ledger.
Fields§
§id: StringThe record’s identifier (e.g. 1, abc123).
ref_: StringThe full ref name (e.g. refs/issues/1).
commit: OidThe commit OID backing this version of the record.
fields: Vec<(String, Vec<u8>)>The record’s fields as (name, value) pairs.
Trait Implementations§
Source§impl Clone for LedgerEntry
impl Clone for LedgerEntry
Source§fn clone(&self) -> LedgerEntry
fn clone(&self) -> LedgerEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LedgerEntry
impl RefUnwindSafe for LedgerEntry
impl Send for LedgerEntry
impl Sync for LedgerEntry
impl Unpin for LedgerEntry
impl UnsafeUnpin for LedgerEntry
impl UnwindSafe for LedgerEntry
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