pub struct CommitPlan {
pub fingerprint: PlanFingerprint,
pub tree: WorkingTreeState,
pub groups: Vec<CommitGroup>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
A plan over a working tree.
use majordomus_cli::commit::{CommitPlan, PlanFingerprint, WorkingTreeState};
let plan = CommitPlan {
fingerprint: PlanFingerprint::of("/r/.git", "/r", &WorkingTreeState::default()),
tree: WorkingTreeState::default(),
groups: Vec::new(),
diagnostics: Vec::new(),
};
assert!(plan.groups.is_empty(), "a clean tree proposes nothing");Fields§
§fingerprint: PlanFingerprintWhat the plan was derived from, and what makes it stale.
tree: WorkingTreeStateThe tree as it stood.
groups: Vec<CommitGroup>The commits proposed, in the order they should be made.
diagnostics: Vec<Diagnostic>What a person should know before acting on it.
Trait Implementations§
Source§impl Clone for CommitPlan
impl Clone for CommitPlan
Source§fn clone(&self) -> CommitPlan
fn clone(&self) -> CommitPlan
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 CommitPlan
impl Debug for CommitPlan
Source§impl<'de> Deserialize<'de> for CommitPlan
impl<'de> Deserialize<'de> for CommitPlan
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
Source§impl JsonSchema for CommitPlan
impl JsonSchema for CommitPlan
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 moreAuto Trait Implementations§
impl Freeze for CommitPlan
impl RefUnwindSafe for CommitPlan
impl Send for CommitPlan
impl Sync for CommitPlan
impl Unpin for CommitPlan
impl UnsafeUnpin for CommitPlan
impl UnwindSafe for CommitPlan
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