[][src]Struct serenity::http::request::Request

pub struct Request<'a> { /* fields omitted */ }

Methods

impl<'a> Request<'a>[src]

pub fn new(builder: RequestBuilder<'a>) -> Self[src]

pub fn build(
    &'a self,
    client: &Client,
    token: &str
) -> Result<ReqwestRequestBuilder, HttpError>
[src]

pub fn body_ref(&self) -> &Option<&'a [u8]>[src]

pub fn body_mut(&mut self) -> &mut Option<&'a [u8]>[src]

pub fn headers_ref(&self) -> &Option<Headers>[src]

pub fn headers_mut(&mut self) -> &mut Option<Headers>[src]

pub fn route_ref(&self) -> &RouteInfo[src]

pub fn route_mut(&mut self) -> &mut RouteInfo<'a>[src]

Trait Implementations

impl<'a> Clone for Request<'a>[src]

impl<'a> Debug for Request<'a>[src]

impl<'a> From<Request<'a>> for RatelimitedRequest<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Request<'a>

impl<'a> Send for Request<'a>

impl<'a> Sync for Request<'a>

impl<'a> Unpin for Request<'a>

impl<'a> UnwindSafe for Request<'a>

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> CloneAny for T where
    T: Clone + Any
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,