Struct seed::fetch::RequestOpts
source · pub struct RequestOpts {
pub payload: Option<String>,
pub headers: HashMap<String, String>,
pub credentials: HashMap<String, String>,
pub mode: RequestMode,
}
Expand description
Higher-level wrapper for web_sys::RequestInit. https://rus twasm.github.io/wasm-bindgen/api/web_sys/struct.RequestInit.html#method.mode
Fields
payload: Option<String>
headers: HashMap<String, String>
credentials: HashMap<String, String>
mode: RequestMode
Implementations
sourceimpl RequestOpts
impl RequestOpts
Trait Implementations
sourceimpl Clone for RequestOpts
impl Clone for RequestOpts
sourcefn clone(&self) -> RequestOpts
fn clone(&self) -> RequestOpts
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for RequestOpts
impl Send for RequestOpts
impl Sync for RequestOpts
impl Unpin for RequestOpts
impl UnwindSafe for RequestOpts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more