Add builder method for exclude_reblogs

master
Paul Woolcock 4 years ago
parent 91d66d76ad
commit f25574154e
  1. 21
      src/requests/statuses.rs

@ -96,6 +96,27 @@ impl<'a> StatusesRequest<'a> {
self self
} }
/// Set the `?exclude_reblogs=1` flag for the .statuses() request
///
/// # Example
///
/// ```
/// # extern crate elefren;
/// # use elefren::StatusesRequest;
/// let mut request = StatusesRequest::new();
/// assert_eq!(
/// &request
/// .exclude_reblogs()
/// .to_querystring()
/// .expect("Couldn't serialize qs"),
/// "?exclude_reblogs=1"
/// );
/// ```
pub fn exclude_reblogs(&mut self) -> &mut Self {
self.exclude_reblogs = true;
self
}
/// Set the `?exclude_replies=1` flag for the .statuses() request /// Set the `?exclude_replies=1` flag for the .statuses() request
/// ///
/// # Example /// # Example

Loading…
Cancel
Save