pub struct InputMediaPoll {
pub poll: Poll,
pub correct_answers: Option<Vec<Vec<u8>>>,
pub solution: Option<String>,
pub solution_entities: Option<Vec<MessageEntity>>,
}Expand description
Generated from:
inputMediaPoll#f94e5f1 flags:# poll:Poll correct_answers:flags.0?Vector<bytes> solution:flags.1?string solution_entities:flags.1?Vector<MessageEntity> = InputMediaFields§
§poll: Poll§correct_answers: Option<Vec<Vec<u8>>>§solution: Option<String>§solution_entities: Option<Vec<MessageEntity>>Trait Implementations§
Source§impl Clone for InputMediaPoll
impl Clone for InputMediaPoll
Source§fn clone(&self) -> InputMediaPoll
fn clone(&self) -> InputMediaPoll
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 InputMediaPoll
impl Debug for InputMediaPoll
Source§impl Deserializable for InputMediaPoll
impl Deserializable for InputMediaPoll
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<InputMediaPoll> for InputMedia
impl From<InputMediaPoll> for InputMedia
Source§fn from(x: InputMediaPoll) -> Self
fn from(x: InputMediaPoll) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputMediaPoll
impl Identifiable for InputMediaPoll
Source§const CONSTRUCTOR_ID: u32 = 0x0f94e5f1
const CONSTRUCTOR_ID: u32 = 0x0f94e5f1
The constructor ID as specified in the TL schema.
Source§impl PartialEq for InputMediaPoll
impl PartialEq for InputMediaPoll
Source§impl Serializable for InputMediaPoll
impl Serializable for InputMediaPoll
Source§impl TryFrom<InputMedia> for InputMediaPoll
impl TryFrom<InputMedia> for InputMediaPoll
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputMediaPoll
Auto Trait Implementations§
impl Freeze for InputMediaPoll
impl RefUnwindSafe for InputMediaPoll
impl Send for InputMediaPoll
impl Sync for InputMediaPoll
impl Unpin for InputMediaPoll
impl UnsafeUnpin for InputMediaPoll
impl UnwindSafe for InputMediaPoll
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