pub struct Genre {
pub id: Id,
pub name: String,
pub key: String,
}Expand description
A genre, interned once however many entities carry it.
Fields§
§id: IdPosition in Catalog::genres.
name: StringName as written in the tags.
key: StringNormalized key, so that case and accent variants land on one genre.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Genre
impl RefUnwindSafe for Genre
impl Send for Genre
impl Sync for Genre
impl Unpin for Genre
impl UnwindSafe for Genre
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