Struct egg_mode::list::ListUpdate
[−]
[src]
pub struct ListUpdate<'a> { /* fields omitted */ }
Represents a pending update to a list's metadata.
As updating a list could modify each field independently, this operation is exposed as a builder
struct. To update any field, call the method named after that field, then call send
to send
the update to Twitter.
Example
use egg_mode::list::{self, ListID}; //remember, you can only update a list if you own it! let update = list::update(ListID::from_slug("Twitter", "support")); let list = core.run(update.name("Official Support").send(&token, &handle)).unwrap();
Methods
impl<'a> ListUpdate<'a>
[src]
fn name(self, name: &'a str) -> ListUpdate<'a>
[src]
Updates the name of the list.
fn public(self, public: bool) -> ListUpdate<'a>
[src]
Sets whether the list is public.
fn desc(self, desc: &'a str) -> ListUpdate<'a>
[src]
Updates the description of the list.
fn send<'h>(self, token: &Token, handle: &'h Handle) -> FutureResponse<'h, List>
[src]
Sends the update request to Twitter.