pub struct WorktreeRecord {
pub path: PathBuf,
pub head: Option<String>,
pub branch: Option<String>,
pub bare: bool,
pub detached: bool,
pub locked: Option<String>,
pub prunable: Option<String>,
}Expand description
One work tree as git registered it.
Fields§
§path: PathBufThe absolute path git holds for it. It may not exist on disk any more; that is what
prunable reports.
head: Option<String>The commit checked out, when there is one.
branch: Option<String>The branch, short — refs/heads/ removed. Absent when detached or bare.
bare: boolThe bare repository itself, which git worktree list reports as the first record of
a bare repository.
detached: boolHEAD is detached here.
locked: Option<String>Locked, with the reason git recorded — an empty string when it recorded none.
prunable: Option<String>Prunable, with git’s reason (the work tree is gone, usually).
Trait Implementations§
Source§impl Clone for WorktreeRecord
impl Clone for WorktreeRecord
Source§fn clone(&self) -> WorktreeRecord
fn clone(&self) -> WorktreeRecord
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 WorktreeRecord
impl Debug for WorktreeRecord
Source§impl<'de> Deserialize<'de> for WorktreeRecord
impl<'de> Deserialize<'de> for WorktreeRecord
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 WorktreeRecord
Source§impl JsonSchema for WorktreeRecord
impl JsonSchema for WorktreeRecord
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 WorktreeRecord
impl PartialEq for WorktreeRecord
Source§fn eq(&self, other: &WorktreeRecord) -> bool
fn eq(&self, other: &WorktreeRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorktreeRecord
impl Serialize for WorktreeRecord
impl StructuralPartialEq for WorktreeRecord
Auto Trait Implementations§
impl Freeze for WorktreeRecord
impl RefUnwindSafe for WorktreeRecord
impl Send for WorktreeRecord
impl Sync for WorktreeRecord
impl Unpin for WorktreeRecord
impl UnsafeUnpin for WorktreeRecord
impl UnwindSafe for WorktreeRecord
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.