Struct teloxide_core::requests::MultipartRequest
source · pub struct MultipartRequest<P> { /* private fields */ }
Expand description
A ready-to-send Telegram request whose payload is sent using multipart/form-data.
Implementations§
Trait Implementations§
source§impl<P: Clone> Clone for MultipartRequest<P>
impl<P: Clone> Clone for MultipartRequest<P>
source§impl<P> Deref for MultipartRequest<P>where
P: 'static + Payload + MultipartPayload,
P::Output: DeserializeOwned,
impl<P> Deref for MultipartRequest<P>where P: 'static + Payload + MultipartPayload, P::Output: DeserializeOwned,
source§impl<P> DerefMut for MultipartRequest<P>where
P: 'static + Payload + MultipartPayload,
P::Output: DeserializeOwned,
impl<P> DerefMut for MultipartRequest<P>where P: 'static + Payload + MultipartPayload, P::Output: DeserializeOwned,
source§impl<P> HasPayload for MultipartRequest<P>where
P: Payload,
impl<P> HasPayload for MultipartRequest<P>where P: Payload,
source§fn payload_mut(&mut self) -> &mut Self::Payload
fn payload_mut(&mut self) -> &mut Self::Payload
Gain mutable access to the underlying payload.
source§fn payload_ref(&self) -> &Self::Payload
fn payload_ref(&self) -> &Self::Payload
Gain immutable access to the underlying payload.
source§impl<P> IntoFuture for MultipartRequest<P>where
P: 'static + Payload + MultipartPayload + Serialize,
P::Output: DeserializeOwned,
impl<P> IntoFuture for MultipartRequest<P>where P: 'static + Payload + MultipartPayload + Serialize, P::Output: DeserializeOwned,
§type Output = Result<<P as Payload>::Output, RequestError>
type Output = Result<<P as Payload>::Output, RequestError>
The output that the future will produce on completion.
§type IntoFuture = Send<P>
type IntoFuture = Send<P>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
source§impl<P> Request for MultipartRequest<P>where
P: 'static + Payload + MultipartPayload + Serialize,
P::Output: DeserializeOwned,
impl<P> Request for MultipartRequest<P>where P: 'static + Payload + MultipartPayload + Serialize, P::Output: DeserializeOwned,
§type Err = RequestError
type Err = RequestError
The type of an error that may happen while sending a request to
Telegram.