pub struct RepositoryRecord {
pub id: RepoId,
pub checkout_id: CheckoutId,
pub alias: String,
pub canonical_path: NativePath,
pub git_common_dir: Option<NativePath>,
pub normalized_remote: Option<String>,
pub head_commit: Option<String>,
pub is_linked_worktree: bool,
pub working_tree_dirty: bool,
}Expand description
Deterministic identity and checkout metadata for one registered repository.
Fields§
§id: RepoIdStable repository identity shared by linked worktrees.
checkout_id: CheckoutIdStable identity of this concrete checkout.
alias: StringUnique alias within the workspace.
canonical_path: NativePathCanonical native checkout path.
git_common_dir: Option<NativePath>Canonical Git common directory when the checkout is a Git repository.
normalized_remote: Option<String>Credential-free normalized remote identity when available.
head_commit: Option<String>Current Git commit when available.
is_linked_worktree: boolWhether Git reports a linked worktree rather than the common checkout.
working_tree_dirty: boolWhether tracked or untracked working-tree changes were observed.
Trait Implementations§
Source§impl Clone for RepositoryRecord
impl Clone for RepositoryRecord
Source§fn clone(&self) -> RepositoryRecord
fn clone(&self) -> RepositoryRecord
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 RepositoryRecord
impl Debug for RepositoryRecord
Source§impl<'de> Deserialize<'de> for RepositoryRecord
impl<'de> Deserialize<'de> for RepositoryRecord
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 RepositoryRecord
Source§impl JsonSchema for RepositoryRecord
impl JsonSchema for RepositoryRecord
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 RepositoryRecord
impl PartialEq for RepositoryRecord
Source§impl Serialize for RepositoryRecord
impl Serialize for RepositoryRecord
impl StructuralPartialEq for RepositoryRecord
Auto Trait Implementations§
impl Freeze for RepositoryRecord
impl RefUnwindSafe for RepositoryRecord
impl Send for RepositoryRecord
impl Sync for RepositoryRecord
impl Unpin for RepositoryRecord
impl UnsafeUnpin for RepositoryRecord
impl UnwindSafe for RepositoryRecord
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