pub struct RequestModification {
pub url: Option<String>,
pub method: Option<HttpMethod>,
pub headers: Option<HashMap<String, String>>,
pub post_data: Option<String>,
}Expand description
Options used when mutating a request before it continues.
Fields§
§url: Option<String>Updated URL.
method: Option<HttpMethod>Updated HTTP method.
headers: Option<HashMap<String, String>>Updated headers.
post_data: Option<String>Updated POST body.
Trait Implementations§
Source§impl Clone for RequestModification
impl Clone for RequestModification
Source§fn clone(&self) -> RequestModification
fn clone(&self) -> RequestModification
Returns a duplicate 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 Debug for RequestModification
impl Debug for RequestModification
Source§impl Default for RequestModification
impl Default for RequestModification
Source§fn default() -> RequestModification
fn default() -> RequestModification
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestModification
impl RefUnwindSafe for RequestModification
impl Send for RequestModification
impl Sync for RequestModification
impl Unpin for RequestModification
impl UnwindSafe for RequestModification
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