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]
impl PixivRequest
pub fn new(method: Method, url: Url, headers: HeaderMap) -> PixivRequest
[src]
pub fn new(method: Method, url: Url, headers: HeaderMap) -> PixivRequest
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]
pub fn method(&self) -> &Method
Get the method.
pub fn method_mut(&mut self) -> &mut Method
[src]
pub fn method_mut(&mut self) -> &mut Method
Get a mutable reference to the method.
pub fn url(&self) -> &Url
[src]
pub fn url(&self) -> &Url
Get the url.
pub fn url_mut(&mut self) -> &Url
[src]
pub fn url_mut(&mut self) -> &Url
Get a mutable reference to the url.
pub fn headers(&self) -> &HeaderMap
[src]
pub fn headers(&self) -> &HeaderMap
Get the headers.
pub fn headers_mut(&mut self) -> &mut HeaderMap
[src]
pub fn headers_mut(&mut self) -> &mut HeaderMap
Get a mutable reference to the headers.
Trait Implementations
impl Debug for PixivRequest
[src]
impl Debug for PixivRequest
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for PixivRequest
[src]
impl Clone for PixivRequest
fn clone(&self) -> PixivRequest
[src]
fn clone(&self) -> PixivRequest
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for PixivRequest
impl Send for PixivRequest
impl Sync for PixivRequest
impl Sync for PixivRequest