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 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 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 for PollContents
impl PartialEq for PollContents
impl StructuralPartialEq for PollContents
Auto Trait Implementations§
impl Freeze for PollContents
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