pub enum IskraSubcommand {
Get {
url: String,
header: Vec<(String, String)>,
query: Vec<(String, String)>,
output: Option<String>,
range: Option<(u64, Option<u64>)>,
resume: bool,
},
Head {
url: String,
header: Vec<(String, String)>,
query: Vec<(String, String)>,
compare_file: Option<String>,
save_headers: Option<String>,
},
Trace {
url: String,
header: Vec<(String, String)>,
query: Vec<(String, String)>,
},
Connect {Show 13 fields
url: String,
header: Vec<(String, String)>,
query: Vec<(String, String)>,
tunnel: bool,
stats: Option<StatsMode>,
hexdump: bool,
log: Option<String>,
mask_host: bool,
prompt: bool,
tunnel_timeout: Option<u64>,
keepalive: bool,
banner: bool,
protocol_detect: bool,
},
Post {
url: String,
body: String,
header: Vec<(String, String)>,
query: Vec<(String, String)>,
output: Option<String>,
range: Option<(u64, Option<u64>)>,
resume: bool,
},
Put {
url: String,
body: String,
header: Vec<(String, String)>,
query: Vec<(String, String)>,
output: Option<String>,
range: Option<(u64, Option<u64>)>,
resume: bool,
},
Delete {
url: String,
header: Vec<(String, String)>,
query: Vec<(String, String)>,
output: Option<String>,
range: Option<(u64, Option<u64>)>,
resume: bool,
},
Custom {
method: String,
url: String,
header: Vec<(String, String)>,
query: Vec<(String, String)>,
output: Option<String>,
body: Option<String>,
trailing_body: Vec<String>,
range: Option<(u64, Option<u64>)>,
resume: bool,
},
Burst {
input: String,
output_dir: Option<String>,
concurrency: usize,
throttle: Option<usize>,
retries: usize,
backoff: u64,
summary: bool,
},
}Variants§
Trait Implementations§
Source§impl Clone for IskraSubcommand
impl Clone for IskraSubcommand
Source§fn clone(&self) -> IskraSubcommand
fn clone(&self) -> IskraSubcommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IskraSubcommand
impl RefUnwindSafe for IskraSubcommand
impl Send for IskraSubcommand
impl Sync for IskraSubcommand
impl Unpin for IskraSubcommand
impl UnsafeUnpin for IskraSubcommand
impl UnwindSafe for IskraSubcommand
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