Struct pixiv::PixivRequest
[−]
[src]
pub struct PixivRequest { /* fields omitted */ }
Pixiv request. You can create this using PixivRequestBuilder::build
. This is for if you wish to inspect the request before sending.
Methods
impl PixivRequest
[src]
pub fn new(method: Method, url: Url, headers: Headers) -> PixivRequest
[src]
Create a new PixivRequest
.
A PixivRequest
is returned when calling build()
on PixivRequestBuilder
, so it is recommended you use that instead.
pub fn method(&self) -> &Method
[src]
Get the method.
pub fn method_mut(&mut self) -> &mut Method
[src]
Get a mutable reference to the method.
pub fn url(&self) -> &Url
[src]
Get the url.
pub fn url_mut(&mut self) -> &Url
[src]
Get a mutable reference to the url.
pub fn headers(&self) -> &Headers
[src]
Get the headers.
pub fn headers_mut(&mut self) -> &mut Headers
[src]
Get a mutable reference to the headers.
Trait Implementations
impl Debug for PixivRequest
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for PixivRequest
[src]
fn clone(&self) -> PixivRequest
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more