pub struct ParsedCurlCommand {
pub method: String,
pub url: String,
pub headers: HashMap<String, String>,
pub body: Option<String>,
}Expand description
Parsed curl command components
Fields§
§method: StringHTTP method extracted from curl command
url: StringURL from curl command
headers: HashMap<String, String>Headers extracted from -H flags
body: Option<String>Request body extracted from -d or –data flags
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedCurlCommand
impl RefUnwindSafe for ParsedCurlCommand
impl Send for ParsedCurlCommand
impl Sync for ParsedCurlCommand
impl Unpin for ParsedCurlCommand
impl UnsafeUnpin for ParsedCurlCommand
impl UnwindSafe for ParsedCurlCommand
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