pub struct Args {
pub command: Option<String>,
pub params: Vec<String>,
}
Expand description
Args contains a command and its params
Fields§
§command: Option<String>
The first argument provided by a user when running neocities. If no argument is provided, the help command will be executed.
params: Vec<String>
A vector of strings, which are collected from arguments a user inputs after the initial
command (e.g. neocities <command> param1 param2
).
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