pub struct ListUpdate { /* private fields */ }Expand description
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 = update.name("Official Support").send(&token).await.unwrap();Implementations§
Source§impl ListUpdate
impl ListUpdate
Sourcepub fn name(self, name: impl Into<String>) -> ListUpdate
pub fn name(self, name: impl Into<String>) -> ListUpdate
Updates the name of the list.
Sourcepub fn public(self, public: bool) -> ListUpdate
pub fn public(self, public: bool) -> ListUpdate
Sets whether the list is public.
Sourcepub fn desc(self, desc: String) -> ListUpdate
pub fn desc(self, desc: String) -> ListUpdate
Updates the description of the list.
Auto Trait Implementations§
impl Freeze for ListUpdate
impl RefUnwindSafe for ListUpdate
impl Send for ListUpdate
impl Sync for ListUpdate
impl Unpin for ListUpdate
impl UnwindSafe for ListUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more