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