pub struct SerializeOutput {
pub changes: usize,
pub refs_written: Vec<String>,
pub pruned: u64,
}Expand description
Result of a serialize operation.
Contains all the information needed by a CLI or other consumer to report what happened, without performing any I/O itself.
Fields§
§changes: usizeNumber of metadata changes serialized (total entries across all destinations).
refs_written: Vec<String>Refs that were written, e.g. ["refs/meta/local/main"].
pruned: u64Number of entries dropped by auto-prune (0 if no prune triggered).
Trait Implementations§
Source§impl Clone for SerializeOutput
impl Clone for SerializeOutput
Source§fn clone(&self) -> SerializeOutput
fn clone(&self) -> SerializeOutput
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 SerializeOutput
impl Debug for SerializeOutput
Source§impl Default for SerializeOutput
impl Default for SerializeOutput
Source§fn default() -> SerializeOutput
fn default() -> SerializeOutput
Returns the “default value” for a type. Read more
Source§impl PartialEq for SerializeOutput
impl PartialEq for SerializeOutput
Source§fn eq(&self, other: &SerializeOutput) -> bool
fn eq(&self, other: &SerializeOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SerializeOutput
impl StructuralPartialEq for SerializeOutput
Auto Trait Implementations§
impl Freeze for SerializeOutput
impl RefUnwindSafe for SerializeOutput
impl Send for SerializeOutput
impl Sync for SerializeOutput
impl Unpin for SerializeOutput
impl UnsafeUnpin for SerializeOutput
impl UnwindSafe for SerializeOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.