pub struct InspectReport {
pub branch: String,
pub branch_exists: bool,
pub expected_path: String,
pub destination_exists: bool,
pub worktree: Option<WorktreeState>,
pub canonical: bool,
pub diagnostics: Vec<TopologyDiagnostic>,
}Expand description
One branch, inspected: where its work tree belongs and what is there.
Fields§
§branch: StringThe branch asked about.
branch_exists: boolThe branch exists locally.
expected_path: StringWhere its work tree belongs.
destination_exists: boolSomething exists at that path.
worktree: Option<WorktreeState>The work tree that holds the branch, when one does.
canonical: boolThe branch is checked out at its canonical path.
diagnostics: Vec<TopologyDiagnostic>What stands in the way, if anything.
Trait Implementations§
Source§impl Clone for InspectReport
impl Clone for InspectReport
Source§fn clone(&self) -> InspectReport
fn clone(&self) -> InspectReport
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 InspectReport
impl Debug for InspectReport
Source§impl<'de> Deserialize<'de> for InspectReport
impl<'de> Deserialize<'de> for InspectReport
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 InspectReport
Source§impl JsonSchema for InspectReport
impl JsonSchema for InspectReport
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 InspectReport
impl PartialEq for InspectReport
Source§fn eq(&self, other: &InspectReport) -> bool
fn eq(&self, other: &InspectReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InspectReport
impl Serialize for InspectReport
impl StructuralPartialEq for InspectReport
Auto Trait Implementations§
impl Freeze for InspectReport
impl RefUnwindSafe for InspectReport
impl Send for InspectReport
impl Sync for InspectReport
impl Unpin for InspectReport
impl UnsafeUnpin for InspectReport
impl UnwindSafe for InspectReport
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.