pub struct ActionPlan {
pub to_clone: Vec<OwnedRepo>,
pub to_sync: Vec<OwnedRepo>,
pub skipped: Vec<SkippedRepo>,
}Expand description
Result of comparing discovered repos with local filesystem.
This represents the action plan for a clone/sync operation.
Fields§
§to_clone: Vec<OwnedRepo>New repositories that need to be cloned
to_sync: Vec<OwnedRepo>Existing repositories that should be synced
skipped: Vec<SkippedRepo>Repositories that were skipped (already exist, uncommitted changes, etc.)
Implementations§
Source§impl ActionPlan
impl ActionPlan
Sourcepub fn add_skipped(&mut self, repo: OwnedRepo, reason: impl Into<String>)
pub fn add_skipped(&mut self, repo: OwnedRepo, reason: impl Into<String>)
Adds a skipped repo.
Trait Implementations§
Source§impl Debug for ActionPlan
impl Debug for ActionPlan
Source§impl Default for ActionPlan
impl Default for ActionPlan
Source§fn default() -> ActionPlan
fn default() -> ActionPlan
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ActionPlan
impl RefUnwindSafe for ActionPlan
impl Send for ActionPlan
impl Sync for ActionPlan
impl Unpin for ActionPlan
impl UnsafeUnpin for ActionPlan
impl UnwindSafe for ActionPlan
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more