pub struct HTTPRequest {
pub protocol: String,
pub verb: Verb,
pub resource: String,
pub query_params: Option<HashMap<String, String>>,
pub headers: Option<Headers>,
pub body: Option<String>,
}
Fields§
§protocol: String
§verb: Verb
§resource: String
§query_params: Option<HashMap<String, String>>
§headers: Option<Headers>
§body: Option<String>
Implementations§
Source§impl HTTPRequest
impl HTTPRequest
Trait Implementations§
Source§impl Clone for HTTPRequest
impl Clone for HTTPRequest
Source§fn clone(&self) -> HTTPRequest
fn clone(&self) -> HTTPRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for HTTPRequest
impl Default for HTTPRequest
Source§impl TryFrom<&str> for HTTPRequest
impl TryFrom<&str> for HTTPRequest
Auto Trait Implementations§
impl Freeze for HTTPRequest
impl RefUnwindSafe for HTTPRequest
impl Send for HTTPRequest
impl Sync for HTTPRequest
impl Unpin for HTTPRequest
impl UnwindSafe for HTTPRequest
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