pub struct ImportCommitProgress {
pub ordinal: u64,
pub commit_hash: String,
pub subject: String,
pub additions: Option<u64>,
pub deletions: Option<u64>,
pub author_name: String,
pub author_email: String,
pub branches: Vec<String>,
}Expand description
One successfully converted Git commit in an import operation’s durable history. Ordinal is one-based in the import’s deterministic conversion order. Hash is the full source Git object id (SHA-1 or SHA-256).
Fields§
§ordinal: u64§commit_hash: String§subject: StringThe first line of the source commit message. This is commit data, not the generic phase summary in OperationProgress.summary.
additions: Option<u64>Textual first-parent diff totals. They are absent when the commit has no textual line statistics (for example, a binary-only change).
deletions: Option<u64>§branches: Vec<String>Source branch names whose imported tips contain this commit. A commit may be reachable from more than one branch.
Implementations§
Trait Implementations§
Source§impl Clone for ImportCommitProgress
impl Clone for ImportCommitProgress
Source§fn clone(&self) -> ImportCommitProgress
fn clone(&self) -> ImportCommitProgress
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 ImportCommitProgress
impl Debug for ImportCommitProgress
Source§impl Default for ImportCommitProgress
impl Default for ImportCommitProgress
impl Eq for ImportCommitProgress
Source§impl Hash for ImportCommitProgress
impl Hash for ImportCommitProgress
Source§impl Message for ImportCommitProgress
impl Message for ImportCommitProgress
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ImportCommitProgress
impl PartialEq for ImportCommitProgress
impl StructuralPartialEq for ImportCommitProgress
Auto Trait Implementations§
impl Freeze for ImportCommitProgress
impl RefUnwindSafe for ImportCommitProgress
impl Send for ImportCommitProgress
impl Sync for ImportCommitProgress
impl Unpin for ImportCommitProgress
impl UnsafeUnpin for ImportCommitProgress
impl UnwindSafe for ImportCommitProgress
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