pub struct InlineFact {Show 13 fields
pub category: String,
pub key: String,
pub value: String,
pub stance: FactStance,
pub evidence: String,
pub subject: FactSubject,
pub restates: Option<String>,
pub updates: Option<String>,
pub graph: ExtractedMemoryGraph,
pub personal_memory: Option<PersonalMemoryWrite>,
pub lifetime: FactLifetime,
pub scope: Option<String>,
pub updates_note: bool,
}Expand description
A fact proposed by progressive extraction.
Fields§
§category: String§key: String§value: String§stance: FactStanceThe user’s stance toward the fact. Missing, null or unknown values
read as FactStance::Unstated, which is never stored.
evidence: StringA verbatim quote from the user’s message that states the fact. Missing or non-string reads as empty, which is never stored.
subject: FactSubjectWhom the fact is about. Missing, null or unknown values read as
FactSubject::Unstated.
restates: Option<String>The key of an already-stored fact this proposal carries the same information as. A restatement is never stored again.
updates: Option<String>The key of a shown stored fact whose attribute this proposal gives a new value: it is written to that fact’s category and key, so the correction supersedes it instead of landing beside it.
graph: ExtractedMemoryGraph§personal_memory: Option<PersonalMemoryWrite>§lifetime: FactLifetime§scope: Option<String>On a turn that works in a project: project or personal (see
crate::project::route). Ignored on any other turn.
updates_note: boolSet when the fact corrects a shown project note: it is written to that note.
Trait Implementations§
Source§impl Clone for InlineFact
impl Clone for InlineFact
Source§impl Debug for InlineFact
impl Debug for InlineFact
Source§impl<'de> Deserialize<'de> for InlineFact
impl<'de> Deserialize<'de> for InlineFact
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>,
Auto Trait Implementations§
impl Forget for InlineFact
impl Freeze for InlineFact
impl Move for InlineFact
impl RefUnwindSafe for InlineFact
impl Send for InlineFact
impl Sync for InlineFact
impl Unpin for InlineFact
impl UnsafeUnpin for InlineFact
impl UnwindSafe for InlineFact
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
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> ⓘ
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> ⓘ
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