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]

Construct a new UpdatePushRequest

Example

use elefren::requests::UpdatePushRequest;
let request = UpdatePushRequest::new("some-id");

Important traits for &'a mut R

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 R

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 R

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 R

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]

Formats the value using the given formatter. Read more

impl Default for UpdatePushRequest
[src]

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

impl Clone for UpdatePushRequest
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for UpdatePushRequest
[src]

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

This method tests for !=.

Auto Trait Implementations