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]

[src]

Updates the name of the list.

[src]

Sets whether the list is public.

[src]

Updates the description of the list.

[src]

Sends the update request to Twitter.