[][src]Struct apify_client::generic_types::SimpleBuilder

pub struct SimpleBuilder<'a, T> {
    pub client: &'a ApifyClient,
    pub url: String,
    pub method: Method,
    pub body: Option<Vec<u8>>,
    pub headers: Option<HeaderMap>,
    pub phantom: PhantomData<T>,
}

Fields

client: &'a ApifyClienturl: Stringmethod: Methodbody: Option<Vec<u8>>headers: Option<HeaderMap>phantom: PhantomData<T>

Implementations

impl<'a, T: DeserializeOwned> SimpleBuilder<'a, T>[src]

pub async fn send<'_>(&'_ self) -> Result<T, ApifyClientError>[src]

impl<'a> SimpleBuilder<'a, NoContent>[src]

pub async fn send<'_>(&'_ self) -> Result<NoContent, ApifyClientError>[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for SimpleBuilder<'a, T>

impl<'a, T> Send for SimpleBuilder<'a, T> where
    T: Send

impl<'a, T> Sync for SimpleBuilder<'a, T> where
    T: Sync

impl<'a, T> Unpin for SimpleBuilder<'a, T> where
    T: Unpin

impl<'a, T> !UnwindSafe for SimpleBuilder<'a, T>

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.