pub struct KbCategory {
pub id: u64,
pub knowledge_base_id: u64,
pub parent_id: Option<u64>,
pub icon: Option<String>,
pub position: Option<u64>,
pub title: Option<String>,
pub answer_ids: Vec<u64>,
pub child_ids: Vec<u64>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
}Expand description
A Knowledge Base category, flattened from Zammad’s assets bundle.
Fields§
§id: u64Numeric category id (stable; accepted by the category methods).
knowledge_base_id: u64Id of the knowledge base the category belongs to.
parent_id: Option<u64>Id of the parent category, or None for a top-level category.
icon: Option<String>FontAwesome icon code (e.g. "f115").
position: Option<u64>Sort position within its parent.
title: Option<String>Title in the KB’s primary locale (first listed translation).
answer_ids: Vec<u64>Ids of the answers in this category.
child_ids: Vec<u64>Ids of the direct child categories.
created_at: Option<String>Creation timestamp (ISO 8601).
updated_at: Option<String>Last-update timestamp (ISO 8601).
Trait Implementations§
Source§impl Clone for KbCategory
impl Clone for KbCategory
Auto Trait Implementations§
impl Freeze for KbCategory
impl RefUnwindSafe for KbCategory
impl Send for KbCategory
impl Sync for KbCategory
impl Unpin for KbCategory
impl UnsafeUnpin for KbCategory
impl UnwindSafe for KbCategory
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