pub struct Category {
pub id: CategoryId,
pub title: PageTitle,
pub pages: PageCount,
pub subcats: PageCount,
pub files: PageCount,
}
Expand description
Represents a row in the category
table.
Fields§
§id: CategoryId
§title: PageTitle
§pages: PageCount
§subcats: PageCount
§files: PageCount
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Category
impl<'de> Deserialize<'de> for Category
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<'input> FromSqlTuple<'input> for Category
impl<'input> FromSqlTuple<'input> for Category
fn from_sql_tuple(s: &'input [u8]) -> IResult<'input, Self>
Source§impl Ord for Category
impl Ord for Category
Source§impl PartialOrd for Category
impl PartialOrd for Category
impl Eq for Category
impl StructuralPartialEq for Category
Auto Trait Implementations§
impl Freeze for Category
impl RefUnwindSafe for Category
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnwindSafe for Category
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