[−][src]Struct serenity::http::request::Request
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]
&'a self,
client: &Client,
token: &str
) -> Result<ReqwestRequestBuilder, HttpError>
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]
fn clone(&self) -> Request<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for Request<'a>
[src]
Auto Trait Implementations
impl<'a> Send for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> UnwindSafe for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> DebugAny for T where
T: Any + Debug,
[src]
T: Any + Debug,
impl<T> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
[src]
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
[src]
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
[src]
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Sync + Send> where
T: Send + Sync,
[src]
T: Send + Sync,
impl<T> UnsafeAny for T where
T: Any,
T: Any,