pub struct RatingComment {
pub username: String,
pub rating: Option<f64>,
pub comment: String,
}Expand description
A comment left on a game by a user. Can include a rating or a text comment or both.
Fields§
§username: StringThe user who left the comment.
rating: Option<f64>The rating, between 0 and 10, that the user left on the game.
comment: StringThe text comment the user left on this game, may be empty.
Trait Implementations§
Source§impl Clone for RatingComment
impl Clone for RatingComment
Source§fn clone(&self) -> RatingComment
fn clone(&self) -> RatingComment
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 RatingComment
impl Debug for RatingComment
Source§impl<'de> Deserialize<'de> for RatingComment
impl<'de> Deserialize<'de> for RatingComment
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 RatingComment
impl PartialEq for RatingComment
impl StructuralPartialEq for RatingComment
Auto Trait Implementations§
impl Freeze for RatingComment
impl RefUnwindSafe for RatingComment
impl Send for RatingComment
impl Sync for RatingComment
impl Unpin for RatingComment
impl UnwindSafe for RatingComment
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