pub struct TwitterPlatformDataPoll {
pub options: Vec<String>,
pub duration_minutes: i32,
}Expand description
TwitterPlatformDataPoll : Create a poll with this tweet. Mutually exclusive with media attachments and threads.
Fields§
§options: Vec<String>Poll options (2-4 choices, max 25 characters each)
duration_minutes: i32Poll duration in minutes (5 min to 7 days)
Implementations§
Trait Implementations§
Source§impl Clone for TwitterPlatformDataPoll
impl Clone for TwitterPlatformDataPoll
Source§fn clone(&self) -> TwitterPlatformDataPoll
fn clone(&self) -> TwitterPlatformDataPoll
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TwitterPlatformDataPoll
impl Debug for TwitterPlatformDataPoll
Source§impl Default for TwitterPlatformDataPoll
impl Default for TwitterPlatformDataPoll
Source§fn default() -> TwitterPlatformDataPoll
fn default() -> TwitterPlatformDataPoll
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TwitterPlatformDataPoll
impl<'de> Deserialize<'de> for TwitterPlatformDataPoll
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TwitterPlatformDataPoll
impl PartialEq for TwitterPlatformDataPoll
Source§fn eq(&self, other: &TwitterPlatformDataPoll) -> bool
fn eq(&self, other: &TwitterPlatformDataPoll) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TwitterPlatformDataPoll
impl Serialize for TwitterPlatformDataPoll
impl StructuralPartialEq for TwitterPlatformDataPoll
Auto Trait Implementations§
impl Freeze for TwitterPlatformDataPoll
impl RefUnwindSafe for TwitterPlatformDataPoll
impl Send for TwitterPlatformDataPoll
impl Sync for TwitterPlatformDataPoll
impl Unpin for TwitterPlatformDataPoll
impl UnsafeUnpin for TwitterPlatformDataPoll
impl UnwindSafe for TwitterPlatformDataPoll
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