Struct rustypaste_cli::args::Args
source · [−]pub struct Args {
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,
}Expand description
Command-line arguments to parse.
Fields
config: Option<PathBuf>Configuration file.
server: Option<String>Server address.
auth: Option<String>Authentication token.
url: Option<String>URL to shorten.
remote: Option<String>Remote URL to download file.
files: Vec<String>Files to upload.
oneshot: boolWhether if the file will disappear after being viewed once.
expire: Option<String>Expiration time for the link.
prettify: boolPrettify the program output.
print_server_version: boolWhether if the server version should be printed.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more