Struct elefren::StatusesRequest[][src]

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

Builder for making a client.statuses() call

Example

let mut request = StatusesRequest::new();
request.only_media().pinned().since_id("foo");

Methods

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

Construct a new StatusesRequest object

Example

let request = StatusesRequest::new();

Important traits for &'a mut R

Set the ?only_media=1 flag for the .statuses() request

Example

let mut request = StatusesRequest::new();
assert_eq!(&request.only_media().to_querystring(), "?only_media=1");

Important traits for &'a mut R

Set the ?exclude_replies=1 flag for the .statuses() request

Example

let mut request = StatusesRequest::new();
assert_eq!(
    &request.exclude_replies().to_querystring(),
    "?exclude_replies=1"
);

Important traits for &'a mut R

Set the ?pinned=1 flag for the .statuses() request

Example

let mut request = StatusesRequest::new();
assert_eq!(&request.pinned().to_querystring(), "?pinned=1");

Important traits for &'a mut R

Set the ?max_id=:max_id flag for the .statuses() request

Example

let mut request = StatusesRequest::new();
assert_eq!(&request.max_id("foo").to_querystring(), "?max_id=foo");

Important traits for &'a mut R

Set the ?since_id=:since_id flag for the .statuses() request

Example

let mut request = StatusesRequest::new();
assert_eq!(&request.since_id("foo").to_querystring(), "?since_id=foo");

Important traits for &'a mut R

Set the ?limit=:limit flag for the .statuses() request

Example

let mut request = StatusesRequest::new();
assert_eq!(&request.limit(10).to_querystring(), "?limit=10");

Turns this builder into a querystring

Example

let mut request = StatusesRequest::new();
assert_eq!(
    &request.limit(10).pinned().to_querystring(),
    "?pinned=1&limit=10"
);

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

impl<'a> Default for StatusesRequest<'a>
[src]

Returns the "default value" for a type. Read more

impl<'a> PartialEq for StatusesRequest<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Into<Option<StatusesRequest<'a>>> for &'a mut StatusesRequest<'a>
[src]

Performs the conversion.

Auto Trait Implementations

impl<'a> Send for StatusesRequest<'a>

impl<'a> Sync for StatusesRequest<'a>