pub struct PollContent {
pub metadata: Option<ContentMetadata>,
pub options: Vec<PollOption>,
pub question: String,
pub selection_mode: PollSelectionMode,
pub type: String,
}Fields§
§metadata: Option<ContentMetadata>§options: Vec<PollOption>§question: String§selection_mode: PollSelectionMode§type: StringImplementations§
Source§impl PollContent
impl PollContent
pub fn serialize<__S>(
__self: &PollContent,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> PollContent
impl<'de> PollContent
pub fn deserialize<__D>(__deserializer: __D) -> Result<PollContent, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for PollContent
impl Clone for PollContent
Source§impl Debug for PollContent
impl Debug for PollContent
Source§impl<'de> Deserialize<'de> for PollContent
impl<'de> Deserialize<'de> for PollContent
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 PollContent
impl RefUnwindSafe for PollContent
impl Send for PollContent
impl Sync for PollContent
impl Unpin for PollContent
impl UnsafeUnpin for PollContent
impl UnwindSafe for PollContent
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