#[repr(u8)]pub enum SubjectType {
Book = 1,
Anime = 2,
Music = 3,
Game = 4,
Real = 6,
}Expand description
条目类型枚举,用于区分不同类型的内容条目
基于u8存储,对应不同类别的内容分类
Variants§
Trait Implementations§
Source§impl Clone for SubjectType
impl Clone for SubjectType
Source§fn clone(&self) -> SubjectType
fn clone(&self) -> SubjectType
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 SubjectType
impl Debug for SubjectType
Source§impl<'de> Deserialize<'de> for SubjectType
impl<'de> Deserialize<'de> for SubjectType
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 SubjectType
impl PartialEq for SubjectType
Source§impl Serialize for SubjectType
impl Serialize for SubjectType
impl StructuralPartialEq for SubjectType
Auto Trait Implementations§
impl Freeze for SubjectType
impl RefUnwindSafe for SubjectType
impl Send for SubjectType
impl Sync for SubjectType
impl Unpin for SubjectType
impl UnwindSafe for SubjectType
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