Struct someday::info::CommitInfo
source · pub struct CommitInfo {
pub patches: usize,
pub timestamp_diff: usize,
}
Expand description
Metadata about a Writer::commit()
This is a container for holding the metadata
Writer
commit operations produce.
It is returned from commit-like functions.
Fields§
§patches: usize
How many patches’s were applied in this Commit
?
timestamp_diff: usize
Trait Implementations§
source§impl<'__de> BorrowDecode<'__de> for CommitInfo
impl<'__de> BorrowDecode<'__de> for CommitInfo
source§fn borrow_decode<__D: BorrowDecoder<'__de>>(
decoder: &mut __D
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
source§impl BorshDeserialize for CommitInfo
impl BorshDeserialize for CommitInfo
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for CommitInfo
impl BorshSerialize for CommitInfo
source§impl Clone for CommitInfo
impl Clone for CommitInfo
source§fn clone(&self) -> CommitInfo
fn clone(&self) -> CommitInfo
Returns a copy 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 moresource§impl Debug for CommitInfo
impl Debug for CommitInfo
source§impl Decode for CommitInfo
impl Decode for CommitInfo
source§impl Default for CommitInfo
impl Default for CommitInfo
source§fn default() -> CommitInfo
fn default() -> CommitInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CommitInfo
impl<'de> Deserialize<'de> for CommitInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encode for CommitInfo
impl Encode for CommitInfo
source§impl Hash for CommitInfo
impl Hash for CommitInfo
source§impl Ord for CommitInfo
impl Ord for CommitInfo
source§fn cmp(&self, other: &CommitInfo) -> Ordering
fn cmp(&self, other: &CommitInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CommitInfo
impl PartialEq for CommitInfo
source§fn eq(&self, other: &CommitInfo) -> bool
fn eq(&self, other: &CommitInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CommitInfo
impl PartialOrd for CommitInfo
source§fn partial_cmp(&self, other: &CommitInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &CommitInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for CommitInfo
impl Serialize for CommitInfo
impl Copy for CommitInfo
impl Eq for CommitInfo
impl StructuralPartialEq for CommitInfo
Auto Trait Implementations§
impl RefUnwindSafe for CommitInfo
impl Send for CommitInfo
impl Sync for CommitInfo
impl Unpin for CommitInfo
impl UnwindSafe for CommitInfo
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