pub struct InputPollAnswer {
pub text: TextWithEntities,
pub media: Option<InputMedia>,
}Expand description
Generated from:
inputPollAnswer#199fed96 flags:# text:TextWithEntities media:flags.0?InputMedia = PollAnswerFields§
§text: TextWithEntities§media: Option<InputMedia>Trait Implementations§
Source§impl Clone for InputPollAnswer
impl Clone for InputPollAnswer
Source§fn clone(&self) -> InputPollAnswer
fn clone(&self) -> InputPollAnswer
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 InputPollAnswer
impl Debug for InputPollAnswer
Source§impl Deserializable for InputPollAnswer
impl Deserializable for InputPollAnswer
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<InputPollAnswer> for PollAnswer
impl From<InputPollAnswer> for PollAnswer
Source§fn from(x: InputPollAnswer) -> Self
fn from(x: InputPollAnswer) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputPollAnswer
impl Identifiable for InputPollAnswer
Source§const CONSTRUCTOR_ID: u32 = 0x199fed96
const CONSTRUCTOR_ID: u32 = 0x199fed96
The constructor ID as specified in the TL schema.
Source§impl PartialEq for InputPollAnswer
impl PartialEq for InputPollAnswer
Source§impl Serializable for InputPollAnswer
impl Serializable for InputPollAnswer
Source§impl TryFrom<PollAnswer> for InputPollAnswer
impl TryFrom<PollAnswer> for InputPollAnswer
Source§type Error = PollAnswer
type Error = PollAnswer
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputPollAnswer
Auto Trait Implementations§
impl Freeze for InputPollAnswer
impl RefUnwindSafe for InputPollAnswer
impl Send for InputPollAnswer
impl Sync for InputPollAnswer
impl Unpin for InputPollAnswer
impl UnsafeUnpin for InputPollAnswer
impl UnwindSafe for InputPollAnswer
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