pub struct Persona {
pub id: String,
pub entity_id: String,
pub namespace: String,
pub body_md: String,
pub sources: Vec<String>,
pub generated_at: String,
pub version: i32,
pub attest_level: String,
}Expand description
Public persona shape returned by PersonaGenerator::generate and
surfaced over the MCP memory_persona read-only tool.
Mirrors the SQL row’s columns plus the rendered Markdown body and
the source-id list spliced into metadata.persona.
Fields§
§id: StringThe Persona memory’s id (UUIDv4). Stable per (entity_id, namespace, version) tuple.
entity_id: StringSubject of the persona.
namespace: StringNamespace the persona was minted under.
body_md: String300–500 word Markdown body with [^ref] footnotes.
sources: Vec<String>Source reflection ids — one derives_from edge per element.
generated_at: StringRFC3339 generation timestamp.
version: i32Monotonic version counter — 1 on the first generation, then
prev + 1 per regeneration.
attest_level: StringStrongest attestation level across the derives_from edges.
Mirrors QW-1’s attest_level summary on reflection exports.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Persona
impl<'de> Deserialize<'de> for Persona
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
impl Eq for Persona
impl StructuralPartialEq for Persona
Auto Trait Implementations§
impl Freeze for Persona
impl RefUnwindSafe for Persona
impl Send for Persona
impl Sync for Persona
impl Unpin for Persona
impl UnsafeUnpin for Persona
impl UnwindSafe for Persona
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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