pub struct UpdateMessagePoll {
pub poll_id: i64,
pub poll: Option<Poll>,
pub results: PollResults,
}Expand description
Generated from:
updateMessagePoll#aca1657b flags:# poll_id:long poll:flags.0?Poll results:PollResults = UpdateFields§
§poll_id: i64§poll: Option<Poll>§results: PollResultsTrait Implementations§
Source§impl Clone for UpdateMessagePoll
impl Clone for UpdateMessagePoll
Source§fn clone(&self) -> UpdateMessagePoll
fn clone(&self) -> UpdateMessagePoll
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 UpdateMessagePoll
impl Debug for UpdateMessagePoll
Source§impl Deserializable for UpdateMessagePoll
impl Deserializable for UpdateMessagePoll
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<UpdateMessagePoll> for Update
impl From<UpdateMessagePoll> for Update
Source§fn from(x: UpdateMessagePoll) -> Self
fn from(x: UpdateMessagePoll) -> Self
Converts to this type from the input type.
Source§impl Identifiable for UpdateMessagePoll
impl Identifiable for UpdateMessagePoll
Source§const CONSTRUCTOR_ID: u32 = 0xaca1657b
const CONSTRUCTOR_ID: u32 = 0xaca1657b
The constructor ID as specified in the TL schema.
Source§impl PartialEq for UpdateMessagePoll
impl PartialEq for UpdateMessagePoll
Source§impl Serializable for UpdateMessagePoll
impl Serializable for UpdateMessagePoll
Source§impl TryFrom<Update> for UpdateMessagePoll
impl TryFrom<Update> for UpdateMessagePoll
impl StructuralPartialEq for UpdateMessagePoll
Auto Trait Implementations§
impl Freeze for UpdateMessagePoll
impl RefUnwindSafe for UpdateMessagePoll
impl Send for UpdateMessagePoll
impl Sync for UpdateMessagePoll
impl Unpin for UpdateMessagePoll
impl UnsafeUnpin for UpdateMessagePoll
impl UnwindSafe for UpdateMessagePoll
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