pub struct ExperienceUpdate {
pub importance: Option<f32>,
pub confidence: Option<f32>,
pub domain: Option<Vec<String>>,
pub related_files: Option<Vec<String>>,
pub archived: Option<bool>,
}Expand description
Partial update for an experience’s mutable fields.
Only fields set to Some(...) will be updated. Content and embedding
are immutable — create a new experience if content changes.
Fields§
§importance: Option<f32>New importance score (0.0–1.0).
confidence: Option<f32>New confidence score (0.0–1.0).
domain: Option<Vec<String>>Replace domain tags entirely.
Replace related files entirely.
archived: Option<bool>Set archived status (used internally by archive/unarchive).
Trait Implementations§
Source§impl Clone for ExperienceUpdate
impl Clone for ExperienceUpdate
Source§fn clone(&self) -> ExperienceUpdate
fn clone(&self) -> ExperienceUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExperienceUpdate
impl Debug for ExperienceUpdate
Source§impl Default for ExperienceUpdate
impl Default for ExperienceUpdate
Source§fn default() -> ExperienceUpdate
fn default() -> ExperienceUpdate
Returns the “default value” for a type. Read more
Source§impl From<ExperienceUpdate> for SerializableExperienceUpdate
Available on crate feature sync only.
impl From<ExperienceUpdate> for SerializableExperienceUpdate
Available on crate feature
sync only.Source§fn from(update: ExperienceUpdate) -> Self
fn from(update: ExperienceUpdate) -> Self
Converts to this type from the input type.
Source§impl From<SerializableExperienceUpdate> for ExperienceUpdate
Available on crate feature sync only.
impl From<SerializableExperienceUpdate> for ExperienceUpdate
Available on crate feature
sync only.Source§fn from(update: SerializableExperienceUpdate) -> Self
fn from(update: SerializableExperienceUpdate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExperienceUpdate
impl RefUnwindSafe for ExperienceUpdate
impl Send for ExperienceUpdate
impl Sync for ExperienceUpdate
impl Unpin for ExperienceUpdate
impl UnsafeUnpin for ExperienceUpdate
impl UnwindSafe for ExperienceUpdate
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,
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