pub struct PollContents {
pub id: LegacyId,
pub start_message: String,
pub end_message: String,
pub questions: Vec<PollQuestion>,
pub nps_poll: bool,
}
Fields§
§id: LegacyId
§start_message: String
§end_message: String
§questions: Vec<PollQuestion>
§nps_poll: bool
Trait Implementations§
source§impl BaseParser for PollContents
impl BaseParser for PollContents
fn parse(packet: &mut HPacket) -> Self
fn append_to_packet(&self, packet: &mut HPacket)
fn get_direction() -> HDirection
fn get_packet_name() -> String
source§impl Clone for PollContents
impl Clone for PollContents
source§fn clone(&self) -> PollContents
fn clone(&self) -> PollContents
Returns a copy 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 PollContents
impl Debug for PollContents
source§impl Default for PollContents
impl Default for PollContents
source§fn default() -> PollContents
fn default() -> PollContents
Returns the “default value” for a type. Read more
source§impl PacketVariable for PollContents
impl PacketVariable for PollContents
source§impl PartialEq<PollContents> for PollContents
impl PartialEq<PollContents> for PollContents
source§fn eq(&self, other: &PollContents) -> bool
fn eq(&self, other: &PollContents) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PollContents
Auto Trait Implementations§
impl RefUnwindSafe for PollContents
impl Send for PollContents
impl Sync for PollContents
impl Unpin for PollContents
impl UnwindSafe for PollContents
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