pub enum ObjectCommands {
Upload {
bucket: Option<String>,
file: PathBuf,
key: Option<String>,
resume: bool,
},
UploadBatch {
bucket: Option<String>,
files: Vec<PathBuf>,
parallel: usize,
resume: bool,
},
Download {
bucket: Option<String>,
object: Option<String>,
out_file: Option<PathBuf>,
},
List {
bucket: Option<String>,
},
Delete {
bucket: Option<String>,
object: Option<String>,
yes: bool,
},
SignedUrl {
bucket: String,
object: String,
minutes: Option<u32>,
},
Info {
bucket: String,
object: String,
},
Copy {
source_bucket: String,
source_object: String,
dest_bucket: String,
dest_object: Option<String>,
},
Rename {
bucket: String,
object: String,
new_key: String,
},
BatchCopy {
source_bucket: String,
dest_bucket: String,
prefix: Option<String>,
keys: Option<String>,
},
BatchRename {
bucket: String,
from: String,
to: String,
},
}Variants§
Upload
Upload a file to a bucket (use - to read from stdin)
Fields
UploadBatch
Upload multiple files in parallel
Fields
Download
Download an object from a bucket (use --out-file - to write to stdout)
Fields
List
List objects in a bucket
Delete
Delete an object from a bucket
Fields
SignedUrl
Get a signed S3 URL for direct download (bypasses OSS servers)
Fields
Info
Get detailed information about an object
Copy
Copy an object to another bucket or key
Fields
Rename
Rename an object within a bucket
BatchCopy
Batch copy objects from one bucket to another
Fields
BatchRename
Batch rename objects within a bucket
Implementations§
Trait Implementations§
Source§impl Debug for ObjectCommands
impl Debug for ObjectCommands
Source§impl FromArgMatches for ObjectCommands
impl FromArgMatches for ObjectCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for ObjectCommands
impl Subcommand for ObjectCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for ObjectCommands
impl RefUnwindSafe for ObjectCommands
impl Send for ObjectCommands
impl Sync for ObjectCommands
impl Unpin for ObjectCommands
impl UnsafeUnpin for ObjectCommands
impl UnwindSafe for ObjectCommands
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