pub struct SyncPlan {
pub files: Vec<SyncPair>,
pub env_files: Vec<SyncPair>,
pub compose_files: Vec<SyncPair>,
pub reference_files: Vec<SyncPair>,
}Expand description
Collection of files that need to be synchronized
Fields§
§files: Vec<SyncPair>§env_files: Vec<SyncPair>§compose_files: Vec<SyncPair>§reference_files: Vec<SyncPair>Implementations§
Source§impl SyncPlan
impl SyncPlan
pub fn new() -> Self
pub fn add_file( &mut self, local: impl AsRef<Path>, remote: impl AsRef<Path>, is_directory: bool, )
pub fn add_env_file( &mut self, local: impl AsRef<Path>, remote: impl AsRef<Path>, )
pub fn add_compose_file( &mut self, local: impl AsRef<Path>, remote: impl AsRef<Path>, )
pub fn add_reference( &mut self, local: impl AsRef<Path>, remote: impl AsRef<Path>, is_directory: bool, )
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncPlan
impl RefUnwindSafe for SyncPlan
impl Send for SyncPlan
impl Sync for SyncPlan
impl Unpin for SyncPlan
impl UnwindSafe for SyncPlan
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