pub struct Rating(pub u8);
Expand description
The user’s rating of the song or piece, from 1 (lowest) to 10 (highest).
Tuple Fields§
§0: u8
Trait Implementations§
Source§impl TryFrom<Element> for Rating
impl TryFrom<Element> for Rating
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl Eq for Rating
impl StructuralPartialEq for Rating
Auto Trait Implementations§
impl Freeze for Rating
impl RefUnwindSafe for Rating
impl Send for Rating
impl Sync for Rating
impl Unpin for Rating
impl UnwindSafe for Rating
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