pub struct ItemDetailVotes {
pub likes: u32,
pub dislikes: u32,
pub votes: u32,
pub like_ratio: f32,
pub show_votes: bool,
pub can_vote: bool,
pub has_voted: bool,
}Fields§
§likes: u32§dislikes: u32§votes: u32§like_ratio: f32§show_votes: bool§can_vote: bool§has_voted: boolTrait Implementations§
Source§impl Clone for ItemDetailVotes
impl Clone for ItemDetailVotes
Source§fn clone(&self) -> ItemDetailVotes
fn clone(&self) -> ItemDetailVotes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ItemDetailVotes
impl Debug for ItemDetailVotes
Source§impl<'de> Deserialize<'de> for ItemDetailVotes
impl<'de> Deserialize<'de> for ItemDetailVotes
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
Source§impl PartialEq for ItemDetailVotes
impl PartialEq for ItemDetailVotes
Source§impl Serialize for ItemDetailVotes
impl Serialize for ItemDetailVotes
impl StructuralPartialEq for ItemDetailVotes
Auto Trait Implementations§
impl Freeze for ItemDetailVotes
impl RefUnwindSafe for ItemDetailVotes
impl Send for ItemDetailVotes
impl Sync for ItemDetailVotes
impl Unpin for ItemDetailVotes
impl UnsafeUnpin for ItemDetailVotes
impl UnwindSafe for ItemDetailVotes
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