pub struct PollAttachment {
pub option_a: String,
pub option_b: String,
pub option_c: Option<String>,
pub option_d: Option<String>,
}Expand description
Poll options when creating a post with a poll.
Fields§
§option_a: StringFirst poll option text.
option_b: StringSecond poll option text.
option_c: Option<String>Third poll option (optional).
option_d: Option<String>Fourth poll option (optional).
Trait Implementations§
Source§impl Clone for PollAttachment
impl Clone for PollAttachment
Source§fn clone(&self) -> PollAttachment
fn clone(&self) -> PollAttachment
Returns a duplicate of the value. Read more
1.0.0 · 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 PollAttachment
impl Debug for PollAttachment
Source§impl<'de> Deserialize<'de> for PollAttachment
impl<'de> Deserialize<'de> for PollAttachment
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
Auto Trait Implementations§
impl Freeze for PollAttachment
impl RefUnwindSafe for PollAttachment
impl Send for PollAttachment
impl Sync for PollAttachment
impl Unpin for PollAttachment
impl UnsafeUnpin for PollAttachment
impl UnwindSafe for PollAttachment
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