pub struct Fact {Show 14 fields
pub id: i64,
pub category: String,
pub key: String,
pub value: String,
pub source: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub superseded_at: Option<DateTime<Utc>>,
pub recall_count: i32,
pub last_recalled_at: Option<DateTime<Utc>>,
pub channel_id: Option<String>,
pub privacy: FactPrivacy,
pub first_seen_at: Option<DateTime<Utc>>,
pub source_excerpt: Option<String>,
}Expand description
A fact stored in Layer 2 memory.
Fields§
§id: i64§category: String§key: String§value: String§source: String§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§superseded_at: Option<DateTime<Utc>>§recall_count: i32§last_recalled_at: Option<DateTime<Utc>>§channel_id: Option<String>Channel where this fact originated (e.g., “slack:C12345”). None for legacy/global facts.
privacy: FactPrivacyPrivacy level controlling where this fact can be recalled.
first_seen_at: Option<DateTime<Utc>>When the fact was originally stated or inferred in the event stream.
source_excerpt: Option<String>The exact snippet of conversation that generated this fact.
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 Forget for Fact
impl Freeze for Fact
impl Move for Fact
impl RefUnwindSafe for Fact
impl Send for Fact
impl Sync for Fact
impl Unpin for Fact
impl UnsafeUnpin for Factwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more