#[non_exhaustive]pub struct AnswerCount {
pub id: u32,
pub count: u32,
pub me_voted: bool,
}Expand description
discord.js counterpart: APIPollAnswerCount (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u32The Answer::answer_id.
count: u32The number of votes.
me_voted: boolWhether the current user voted for this answer.
Trait Implementations§
Source§impl Clone for AnswerCount
impl Clone for AnswerCount
impl Copy for AnswerCount
Source§impl Debug for AnswerCount
impl Debug for AnswerCount
Source§impl<'de> Deserialize<'de> for AnswerCount
impl<'de> Deserialize<'de> for AnswerCount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AnswerCount
Source§impl Hash for AnswerCount
impl Hash for AnswerCount
Source§impl PartialEq for AnswerCount
impl PartialEq for AnswerCount
Source§impl Serialize for AnswerCount
impl Serialize for AnswerCount
impl StructuralPartialEq for AnswerCount
Auto Trait Implementations§
impl Forget for AnswerCount
impl Freeze for AnswerCount
impl Move for AnswerCount
impl RefUnwindSafe for AnswerCount
impl Send for AnswerCount
impl Sync for AnswerCount
impl Unpin for AnswerCount
impl UnsafeUnpin for AnswerCount
impl UnwindSafe for AnswerCount
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