pub struct Preference {
pub category: String,
pub key: String,
pub value: String,
pub confidence: f32,
}Expand description
A user preference entry.
Fields§
§category: StringCategory of the preference (e.g., “communication”, “output”).
key: StringKey identifying the specific preference.
value: StringThe preference value.
confidence: f32Confidence score (0.0 to 1.0) for this preference.
Trait Implementations§
Source§impl Clone for Preference
impl Clone for Preference
Source§fn clone(&self) -> Preference
fn clone(&self) -> Preference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Preference
impl Debug for Preference
Source§impl<'de> Deserialize<'de> for Preference
impl<'de> Deserialize<'de> for Preference
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
Auto Trait Implementations§
impl Freeze for Preference
impl RefUnwindSafe for Preference
impl Send for Preference
impl Sync for Preference
impl Unpin for Preference
impl UnsafeUnpin for Preference
impl UnwindSafe for Preference
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