pub struct Category {
pub id: CategoryId,
pub user_scopes: Vec<UserScope>,
pub name: String,
pub children: Vec<Category>,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
}
Expand description
The over-the-wire representation of a category.
Fields§
§id: CategoryId
The category’s id.
user_scopes: Vec<UserScope>
The category’s user_scope.
name: String
The category’s name.
children: Vec<Category>
The category’s children, if any.
created_at: DateTime<Utc>
When the category was initially created.
updated_at: Option<DateTime<Utc>>
When the category was last updated.
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
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