pub struct Tag {
pub id: i64,
pub name: String,
pub description: String,
pub category: String,
pub rank: i64,
pub is_general_spoiler: bool,
pub is_media_spoiler: bool,
pub is_adult: bool,
pub user_id: Option<i64>,
}
Expand description
Represents a tag in the system.
Fields§
§id: i64
The ID of the tag.
name: String
The name of the tag.
description: String
The description of the tag.
category: String
The category of the tag.
rank: i64
The rank of the tag.
is_general_spoiler: bool
Whether the tag is a general spoiler.
is_media_spoiler: bool
Whether the tag is a media spoiler.
is_adult: bool
Whether the tag is adult content.
user_id: Option<i64>
The user ID associated with the tag.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tag
impl<'de> Deserialize<'de> for Tag
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
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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