pub struct Args {Show 13 fields
pub config: Option<PathBuf>,
pub server: Option<String>,
pub auth: Option<String>,
pub url: Option<String>,
pub remote: Option<String>,
pub files: Vec<String>,
pub oneshot: bool,
pub expire: Option<String>,
pub prettify: bool,
pub print_server_version: bool,
pub list_files: bool,
pub delete: bool,
pub filename: Option<String>,
}
Expand description
Command-line arguments to parse.
Fields§
§config: Option<PathBuf>
Configuration file.
server: Option<String>
Server address.
auth: Option<String>
Authentication or delete token.
url: Option<String>
URL to shorten.
remote: Option<String>
Remote URL to download file.
files: Vec<String>
Files to upload.
oneshot: bool
Whether if the file will disappear after being viewed once.
expire: Option<String>
Expiration time for the link.
prettify: bool
Prettify the program output.
print_server_version: bool
Whether if the server version should be printed.
list_files: bool
List files on the server (file name, file size, expiry timestamp).
delete: bool
Delete files from server.
filename: Option<String>
Send filename header (give uploaded file a specific name).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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