[][src]Struct spair::FetchArgs

pub struct FetchArgs { /* fields omitted */ }

Implementations

impl FetchArgs[src]

pub fn new(request_builder: Builder) -> Self[src]

pub fn options(self, options: FetchOptions) -> Self[src]

pub fn json_body<T: Serialize>(self, data: &T) -> Self[src]

pub fn json_response<C, T, Cl>(
    self,
    ok_handler: fn(_: &mut C, _: T) -> Cl,
    error_handler: fn(_: &mut C, _: FetchError)
) -> Box<FetchCmd<C, T, Cl>> where
    C: Component,
    T: 'static + DeserializeOwned,
    Cl: 'static + Into<Checklist<C>>, 
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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.