pub struct PollMedia {
pub animation: Option<Animation>,
pub audio: Option<Audio>,
pub document: Option<Document>,
pub link: Option<Link>,
pub live_photo: Option<LivePhoto>,
pub location: Option<Location>,
pub photo: Option<Vec<PhotoSize>>,
pub sticker: Option<Sticker>,
pub venue: Option<Venue>,
pub video: Option<Video>,
}Expand description
This object describes media attached to a poll.
Fields§
§animation: Option<Animation>Animation attached to the poll.
audio: Option<Audio>Audio attached to the poll.
document: Option<Document>Document attached to the poll.
link: Option<Link>The HTTP link attached to the poll option.
live_photo: Option<LivePhoto>Live photo attached to the poll.
location: Option<Location>Location attached to the poll.
photo: Option<Vec<PhotoSize>>Photo attached to the poll.
sticker: Option<Sticker>Sticker attached to the poll.
venue: Option<Venue>Venue attached to the poll.
video: Option<Video>Video attached to the poll.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PollMedia
impl<'de> Deserialize<'de> for PollMedia
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PollMedia, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PollMedia, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PollMedia
impl Serialize for PollMedia
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PollMedia
Auto Trait Implementations§
impl Forget for PollMedia
impl Freeze for PollMediawhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static str: Freeze,
PhantomData<(Indexed, Indexed)>: Freeze,
PhantomData<PhotoSize>: Freeze,
PhantomData<VideoQuality>: Freeze,
impl Move for PollMedia
impl RefUnwindSafe for PollMedia
impl Send for PollMedia
impl Sync for PollMediawhere
RawVecInner: Sync,
impl Unpin for PollMedia
impl UnsafeUnpin for PollMediawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<(Indexed, Indexed)>: UnsafeUnpin,
PhantomData<PhotoSize>: UnsafeUnpin,
PhantomData<VideoQuality>: UnsafeUnpin,
impl UnwindSafe for PollMedia
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more