pub struct SnapshotDownloadOptions {
pub canister: String,
pub out: PathBuf,
pub root: Option<String>,
pub registry_json: Option<PathBuf>,
pub include_children: bool,
pub recursive: bool,
pub dry_run: bool,
pub lifecycle: SnapshotLifecycleMode,
pub network: Option<String>,
pub dfx: String,
}Expand description
SnapshotDownloadOptions
Fields§
§canister: String§out: PathBuf§root: Option<String>§registry_json: Option<PathBuf>§include_children: bool§recursive: bool§dry_run: bool§lifecycle: SnapshotLifecycleMode§network: Option<String>§dfx: StringImplementations§
Source§impl SnapshotDownloadOptions
impl SnapshotDownloadOptions
Sourcepub fn parse<I>(args: I) -> Result<Self, SnapshotCommandError>where
I: IntoIterator<Item = OsString>,
pub fn parse<I>(args: I) -> Result<Self, SnapshotCommandError>where
I: IntoIterator<Item = OsString>,
Parse snapshot download options from CLI arguments.
Trait Implementations§
Source§impl Clone for SnapshotDownloadOptions
impl Clone for SnapshotDownloadOptions
Source§fn clone(&self) -> SnapshotDownloadOptions
fn clone(&self) -> SnapshotDownloadOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 SnapshotDownloadOptions
impl Debug for SnapshotDownloadOptions
Source§impl PartialEq for SnapshotDownloadOptions
impl PartialEq for SnapshotDownloadOptions
impl Eq for SnapshotDownloadOptions
impl StructuralPartialEq for SnapshotDownloadOptions
Auto Trait Implementations§
impl Freeze for SnapshotDownloadOptions
impl RefUnwindSafe for SnapshotDownloadOptions
impl Send for SnapshotDownloadOptions
impl Sync for SnapshotDownloadOptions
impl Unpin for SnapshotDownloadOptions
impl UnsafeUnpin for SnapshotDownloadOptions
impl UnwindSafe for SnapshotDownloadOptions
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