pub struct FetchOptions {
pub cache: Option<Cache>,
pub credentials: Option<Credentials>,
pub redirect: Option<Redirect>,
pub mode: Option<Mode>,
pub referrer: Option<Referrer>,
pub referrer_policy: Option<ReferrerPolicy>,
pub integrity: Option<String>,
}
Expand description
Init options for fetch()
function call.
https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch
Fields§
§cache: Option<Cache>
Cache of a fetch request.
credentials: Option<Credentials>
Credentials of a fetch request.
redirect: Option<Redirect>
Redirect behaviour of a fetch request.
mode: Option<Mode>
Request mode of a fetch request.
referrer: Option<Referrer>
Referrer of a fetch request.
referrer_policy: Option<ReferrerPolicy>
Referrer policy of a fetch request.
integrity: Option<String>
Integrity of a fetch request.
Trait Implementations§
Source§impl Debug for FetchOptions
impl Debug for FetchOptions
Source§impl Default for FetchOptions
impl Default for FetchOptions
Source§fn default() -> FetchOptions
fn default() -> FetchOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FetchOptions
impl RefUnwindSafe for FetchOptions
impl Send for FetchOptions
impl Sync for FetchOptions
impl Unpin for FetchOptions
impl UnwindSafe for FetchOptions
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
Source§impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
Source§fn into_opt_prop_value(self) -> Option<V>
fn into_opt_prop_value(self) -> Option<V>
Convert
self
to an optional value of a Properties
struct.Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.