pub struct TextDocument {
pub subject_id: Uuid,
pub kind: SubstrateKind,
pub record_kind: Option<String>,
pub namespace: String,
pub title: Option<String>,
pub body: String,
pub tags: Vec<String>,
pub metadata: Option<Value>,
pub updated_at: DateTime<Utc>,
}Expand description
A text document to be indexed for full-text search.
Fields§
§subject_id: Uuid§kind: SubstrateKind§record_kind: Option<String>Granular kind of the indexed record (memory, task, concept, …).
This is distinct from Self::kind, which identifies only the
substrate. Backends may index this classifier so corpus-scoped searches
can prune before ranking instead of filtering a shared posting list.
namespace: String§title: Option<String>§body: String§metadata: Option<Value>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for TextDocument
impl Clone for TextDocument
Source§impl Debug for TextDocument
impl Debug for TextDocument
Source§impl<'de> Deserialize<'de> for TextDocument
impl<'de> Deserialize<'de> for TextDocument
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 TextDocument
impl RefUnwindSafe for TextDocument
impl Send for TextDocument
impl Sync for TextDocument
impl Unpin for TextDocument
impl UnsafeUnpin for TextDocument
impl UnwindSafe for TextDocument
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