pub struct WorktreeFingerprint {
pub branch: Option<String>,
pub head: Option<String>,
pub index_digest: String,
pub staged_diff_digest: String,
pub unstaged_diff_digest: String,
pub untracked_manifest_digest: String,
pub untracked_files: usize,
pub ignored_manifest_digest: String,
pub in_progress: Option<String>,
pub tree_manifest_digest: Option<String>,
}Expand description
What a work tree held at one moment, reduced to digests.
Fields§
§branch: Option<String>The branch, or none when detached.
head: Option<String>The commit.
index_digest: StringA digest of the index: every tracked path with its mode, blob and stage.
staged_diff_digest: StringA digest of the staged diff against HEAD.
unstaged_diff_digest: StringA digest of the unstaged diff against the index.
untracked_manifest_digest: StringA digest of every untracked file: path, kind, size and content.
untracked_files: usizeHow many untracked files the manifest holds.
ignored_manifest_digest: StringA digest of every ignored entry: path, kind and size, never content.
in_progress: Option<String>The operation in progress, if any.
tree_manifest_digest: Option<String>A digest of every entry of the directory tree, ignored included: path, kind, size and link target. Taken only for a move made by copying, where the rename guarantee does not hold.
Trait Implementations§
Source§impl Clone for WorktreeFingerprint
impl Clone for WorktreeFingerprint
Source§fn clone(&self) -> WorktreeFingerprint
fn clone(&self) -> WorktreeFingerprint
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 WorktreeFingerprint
impl Debug for WorktreeFingerprint
Source§impl<'de> Deserialize<'de> for WorktreeFingerprint
impl<'de> Deserialize<'de> for WorktreeFingerprint
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
impl Eq for WorktreeFingerprint
Source§impl JsonSchema for WorktreeFingerprint
impl JsonSchema for WorktreeFingerprint
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for WorktreeFingerprint
impl PartialEq for WorktreeFingerprint
Source§fn eq(&self, other: &WorktreeFingerprint) -> bool
fn eq(&self, other: &WorktreeFingerprint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorktreeFingerprint
impl Serialize for WorktreeFingerprint
impl StructuralPartialEq for WorktreeFingerprint
Auto Trait Implementations§
impl Freeze for WorktreeFingerprint
impl RefUnwindSafe for WorktreeFingerprint
impl Send for WorktreeFingerprint
impl Sync for WorktreeFingerprint
impl Unpin for WorktreeFingerprint
impl UnsafeUnpin for WorktreeFingerprint
impl UnwindSafe for WorktreeFingerprint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.