pub struct AtomicNoteSpec<'a> {
pub token: &'a NamespaceToken,
pub id: Option<Uuid>,
pub kind: &'a str,
pub name: Option<&'a str>,
pub content: &'a str,
pub properties: Option<Value>,
}Expand description
One note to write as part of an atomic set. Mirrors the subset of
create_note_inner’s parameters comm.send/comm.reply actually use —
no annotates, salience, decay_factor, embedding_content override,
or explicit embedding_model pin. Keyed-memory preparation carries those
through internal options without changing the public multi-note spec.
Fields§
§token: &'a NamespaceTokenNamespace + actor identity this note is written under.
id: Option<Uuid>Caller-supplied id, when the id must be known before the write (e.g.
a root send’s own id becomes the canonical thread_id stored in
BOTH copies’ properties). None generates a fresh id, same as
Note::new.
kind: &'a str§name: Option<&'a str>§content: &'a str§properties: Option<Value>Auto Trait Implementations§
impl<'a> Freeze for AtomicNoteSpec<'a>
impl<'a> RefUnwindSafe for AtomicNoteSpec<'a>
impl<'a> Send for AtomicNoteSpec<'a>
impl<'a> Sync for AtomicNoteSpec<'a>
impl<'a> Unpin for AtomicNoteSpec<'a>
impl<'a> UnsafeUnpin for AtomicNoteSpec<'a>
impl<'a> UnwindSafe for AtomicNoteSpec<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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