Struct id3::frame::Popularimeter
source · pub struct Popularimeter {
pub user: String,
pub rating: u8,
pub counter: u64,
}
Expand description
The parsed contents of a popularimeter frame.
Fields§
§user: String
An identifier for the user which performed the rating. Typically an email address.
rating: u8
The rating is 1-255 where 1 is worst and 255 is best. 0 is unknown.
counter: u64
The play count for this user. It is intended to be incremented for every time the file is played.
Trait Implementations§
source§impl Clone for Popularimeter
impl Clone for Popularimeter
source§fn clone(&self) -> Popularimeter
fn clone(&self) -> Popularimeter
Returns a copy 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 Popularimeter
impl Debug for Popularimeter
source§impl Display for Popularimeter
impl Display for Popularimeter
source§impl From<Popularimeter> for Frame
impl From<Popularimeter> for Frame
source§fn from(c: Popularimeter) -> Self
fn from(c: Popularimeter) -> Self
Converts to this type from the input type.
source§impl Hash for Popularimeter
impl Hash for Popularimeter
source§impl Ord for Popularimeter
impl Ord for Popularimeter
source§fn cmp(&self, other: &Popularimeter) -> Ordering
fn cmp(&self, other: &Popularimeter) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Popularimeter
impl PartialEq for Popularimeter
source§fn eq(&self, other: &Popularimeter) -> bool
fn eq(&self, other: &Popularimeter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Popularimeter
impl PartialOrd for Popularimeter
source§fn partial_cmp(&self, other: &Popularimeter) -> Option<Ordering>
fn partial_cmp(&self, other: &Popularimeter) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Popularimeter
impl StructuralPartialEq for Popularimeter
Auto Trait Implementations§
impl RefUnwindSafe for Popularimeter
impl Send for Popularimeter
impl Sync for Popularimeter
impl Unpin for Popularimeter
impl UnwindSafe for Popularimeter
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