[][src]Struct yew::services::fetch::FetchOptions

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>,
}

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

impl Debug for FetchOptions[src]

impl Default for FetchOptions[src]

impl Into<RequestInit> for FetchOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.