pub struct RatingAttributes {
pub rating: Option<i32>,
}Expand description
Rating attributes
Fields§
§rating: Option<i32>The value for the resource’s rating. The possible values for the value key are 1 and -1. If a value isn’t present, the content doesn’t have a rating
Trait Implementations§
Source§impl Clone for RatingAttributes
impl Clone for RatingAttributes
Source§fn clone(&self) -> RatingAttributes
fn clone(&self) -> RatingAttributes
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 RatingAttributes
impl Debug for RatingAttributes
Source§impl Default for RatingAttributes
impl Default for RatingAttributes
Source§fn default() -> RatingAttributes
fn default() -> RatingAttributes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RatingAttributeswhere
RatingAttributes: Default,
impl<'de> Deserialize<'de> for RatingAttributeswhere
RatingAttributes: Default,
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 Hash for RatingAttributes
impl Hash for RatingAttributes
Source§impl PartialEq for RatingAttributes
impl PartialEq for RatingAttributes
Source§impl Serialize for RatingAttributes
impl Serialize for RatingAttributes
impl Eq for RatingAttributes
impl StructuralPartialEq for RatingAttributes
Auto Trait Implementations§
impl Freeze for RatingAttributes
impl RefUnwindSafe for RatingAttributes
impl Send for RatingAttributes
impl Sync for RatingAttributes
impl Unpin for RatingAttributes
impl UnwindSafe for RatingAttributes
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