[−][src]Struct egg_mode::list::ListUpdate
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();
Methods
impl ListUpdate
[src]
pub fn name(self, name: impl Into<String>) -> ListUpdate
[src]
Updates the name of the list.
pub fn public(self, public: bool) -> ListUpdate
[src]
Sets whether the list is public.
pub fn desc(self, desc: String) -> ListUpdate
[src]
Updates the description of the list.
pub async fn send<'_>(self, token: &'_ Token) -> Result<Response<List>, Error>
[src]
Sends the update request to Twitter.
Auto Trait Implementations
impl RefUnwindSafe for ListUpdate
impl Send for ListUpdate
impl Sync for ListUpdate
impl Unpin for ListUpdate
impl UnwindSafe for ListUpdate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,