pub struct Fact {
pub id: String,
pub namespace: String,
pub content: String,
pub source: Option<String>,
pub created_at: String,
pub updated_at: String,
pub metadata: Option<Value>,
}Expand description
A discrete fact in the knowledge store.
Fields§
§id: StringUUID v4.
namespace: StringCategorization namespace.
content: StringThe fact text.
source: Option<String>Where this fact came from.
created_at: StringISO 8601 timestamp.
updated_at: StringISO 8601 timestamp.
metadata: Option<Value>Optional JSON metadata.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fact
impl<'de> Deserialize<'de> for Fact
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 Fact
impl RefUnwindSafe for Fact
impl Send for Fact
impl Sync for Fact
impl Unpin for Fact
impl UnsafeUnpin for Fact
impl UnwindSafe for Fact
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