pub struct SerializableExperienceUpdate {
pub importance: Option<f32>,
pub confidence: Option<f32>,
pub domain: Option<Vec<String>>,
pub related_files: Option<Vec<String>>,
pub archived: Option<bool>,
}Available on crate feature
sync only.Expand description
Wire-safe version of crate::ExperienceUpdate for sync payloads.
The original ExperienceUpdate does not derive Serialize/Deserialize,
so this struct mirrors its fields with full serde support. Use the From
impls to convert between the two.
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.
Trait Implementations§
Source§impl Clone for SerializableExperienceUpdate
impl Clone for SerializableExperienceUpdate
Source§fn clone(&self) -> SerializableExperienceUpdate
fn clone(&self) -> SerializableExperienceUpdate
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 SerializableExperienceUpdate
impl Debug for SerializableExperienceUpdate
Source§impl Default for SerializableExperienceUpdate
impl Default for SerializableExperienceUpdate
Source§fn default() -> SerializableExperienceUpdate
fn default() -> SerializableExperienceUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SerializableExperienceUpdate
impl<'de> Deserialize<'de> for SerializableExperienceUpdate
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
Source§impl From<ExperienceUpdate> for SerializableExperienceUpdate
impl From<ExperienceUpdate> for SerializableExperienceUpdate
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
impl From<SerializableExperienceUpdate> for ExperienceUpdate
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 SerializableExperienceUpdate
impl RefUnwindSafe for SerializableExperienceUpdate
impl Send for SerializableExperienceUpdate
impl Sync for SerializableExperienceUpdate
impl Unpin for SerializableExperienceUpdate
impl UnsafeUnpin for SerializableExperienceUpdate
impl UnwindSafe for SerializableExperienceUpdate
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