Struct elefren::UpdatePushRequest [−][src]
pub struct UpdatePushRequest { /* fields omitted */ }
Builder to pass to the Mastodon::update_push_data method
Example
use elefren::requests::UpdatePushRequest; let client = Mastodon::from(data); let mut request = UpdatePushRequest::new("foobar"); request.follow(true).reblog(true); client.update_push_data(&request)?;
Methods
impl UpdatePushRequest
[src]
impl UpdatePushRequest
pub fn new(id: &str) -> UpdatePushRequest
[src]
pub fn new(id: &str) -> UpdatePushRequest
Construct a new UpdatePushRequest
Example
use elefren::requests::UpdatePushRequest; let request = UpdatePushRequest::new("some-id");
ⓘImportant traits for &'a mut Rpub fn follow(&mut self, follow: bool) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn follow(&mut self, follow: bool) -> &mut Self
A flag that indicates if you want follow notifications pushed
Example
use elefren::requests::UpdatePushRequest; let mut request = UpdatePushRequest::new("foobar"); request.follow(true);
ⓘImportant traits for &'a mut Rpub fn favourite(&mut self, favourite: bool) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn favourite(&mut self, favourite: bool) -> &mut Self
A flag that indicates if you want favourite notifications pushed
Example
use elefren::requests::UpdatePushRequest; let mut request = UpdatePushRequest::new("foobar"); request.favourite(true);
ⓘImportant traits for &'a mut Rpub fn reblog(&mut self, reblog: bool) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn reblog(&mut self, reblog: bool) -> &mut Self
A flag that indicates if you want reblog notifications pushed
Example
use elefren::requests::UpdatePushRequest; let mut request = UpdatePushRequest::new("foobar"); request.reblog(true);
ⓘImportant traits for &'a mut Rpub fn mention(&mut self, mention: bool) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn mention(&mut self, mention: bool) -> &mut Self
A flag that indicates if you want mention notifications pushed
Example
use elefren::requests::UpdatePushRequest; let mut request = UpdatePushRequest::new("foobar"); request.mention(true);
Trait Implementations
impl Debug for UpdatePushRequest
[src]
impl Debug for UpdatePushRequest
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 Default for UpdatePushRequest
[src]
impl Default for UpdatePushRequest
fn default() -> UpdatePushRequest
[src]
fn default() -> UpdatePushRequest
Returns the "default value" for a type. Read more
impl Clone for UpdatePushRequest
[src]
impl Clone for UpdatePushRequest
fn clone(&self) -> UpdatePushRequest
[src]
fn clone(&self) -> UpdatePushRequest
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
impl PartialEq for UpdatePushRequest
[src]
impl PartialEq for UpdatePushRequest
fn eq(&self, other: &UpdatePushRequest) -> bool
[src]
fn eq(&self, other: &UpdatePushRequest) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UpdatePushRequest) -> bool
[src]
fn ne(&self, other: &UpdatePushRequest) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for UpdatePushRequest
impl Send for UpdatePushRequest
impl Sync for UpdatePushRequest
impl Sync for UpdatePushRequest