pub struct MessageVoteSummary {
pub message_id: String,
pub upvotes: i64,
pub downvotes: i64,
pub user_vote: Option<VoteType>,
}Expand description
Summary of votes for a message
Fields§
§message_id: String§upvotes: i64§downvotes: i64§user_vote: Option<VoteType>Current user’s vote on this message, if any
Trait Implementations§
Source§impl Clone for MessageVoteSummary
impl Clone for MessageVoteSummary
Source§fn clone(&self) -> MessageVoteSummary
fn clone(&self) -> MessageVoteSummary
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 MessageVoteSummary
impl Debug for MessageVoteSummary
Source§impl Default for MessageVoteSummary
impl Default for MessageVoteSummary
Source§fn default() -> MessageVoteSummary
fn default() -> MessageVoteSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageVoteSummary
impl<'de> Deserialize<'de> for MessageVoteSummary
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
Auto Trait Implementations§
impl Freeze for MessageVoteSummary
impl RefUnwindSafe for MessageVoteSummary
impl Send for MessageVoteSummary
impl Sync for MessageVoteSummary
impl Unpin for MessageVoteSummary
impl UnsafeUnpin for MessageVoteSummary
impl UnwindSafe for MessageVoteSummary
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