pub struct KnowledgeIndexEntry {
pub number: u64,
pub id: Uuid,
pub title: String,
pub article_type: KnowledgeType,
pub status: KnowledgeStatus,
pub domain: Option<String>,
pub file: String,
}Expand description
Knowledge article index entry for the knowledge.yaml file
Fields§
§number: u64Article number (can be sequential or timestamp-based)
id: UuidArticle UUID
title: StringArticle title
article_type: KnowledgeTypeArticle type
status: KnowledgeStatusArticle status
domain: Option<String>Domain (if applicable)
file: StringFilename of the article YAML file
Trait Implementations§
Source§impl Clone for KnowledgeIndexEntry
impl Clone for KnowledgeIndexEntry
Source§fn clone(&self) -> KnowledgeIndexEntry
fn clone(&self) -> KnowledgeIndexEntry
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 KnowledgeIndexEntry
impl Debug for KnowledgeIndexEntry
Source§impl<'de> Deserialize<'de> for KnowledgeIndexEntry
impl<'de> Deserialize<'de> for KnowledgeIndexEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KnowledgeIndexEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KnowledgeIndexEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&KnowledgeArticle> for KnowledgeIndexEntry
impl From<&KnowledgeArticle> for KnowledgeIndexEntry
Source§fn from(article: &KnowledgeArticle) -> KnowledgeIndexEntry
fn from(article: &KnowledgeArticle) -> KnowledgeIndexEntry
Converts to this type from the input type.
Source§impl PartialEq for KnowledgeIndexEntry
impl PartialEq for KnowledgeIndexEntry
Source§impl Serialize for KnowledgeIndexEntry
impl Serialize for KnowledgeIndexEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for KnowledgeIndexEntry
Auto Trait Implementations§
impl Freeze for KnowledgeIndexEntry
impl RefUnwindSafe for KnowledgeIndexEntry
impl Send for KnowledgeIndexEntry
impl Sync for KnowledgeIndexEntry
impl Unpin for KnowledgeIndexEntry
impl UnwindSafe for KnowledgeIndexEntry
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