[−][src]Struct spair::FetchArgs
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]
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>>,
Auto Trait Implementations
impl !RefUnwindSafe for FetchArgs
impl Send for FetchArgs
impl Sync for FetchArgs
impl Unpin for FetchArgs
impl !UnwindSafe for FetchArgs
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,