pub struct ContextAddCommand {
pub target: ContextAddTarget,
pub reason: Option<String>,
pub relevance: Option<f32>,
}Expand description
CTX ADD command options
Fields§
§target: ContextAddTargetWhat to add
reason: Option<String>Reason for inclusion (for tracking)
relevance: Option<f32>Custom relevance score (0.0-1.0)
Trait Implementations§
Source§impl Clone for ContextAddCommand
impl Clone for ContextAddCommand
Source§fn clone(&self) -> ContextAddCommand
fn clone(&self) -> ContextAddCommand
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 ContextAddCommand
impl Debug for ContextAddCommand
Source§impl<'de> Deserialize<'de> for ContextAddCommand
impl<'de> Deserialize<'de> for ContextAddCommand
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 PartialEq for ContextAddCommand
impl PartialEq for ContextAddCommand
Source§impl Serialize for ContextAddCommand
impl Serialize for ContextAddCommand
impl StructuralPartialEq for ContextAddCommand
Auto Trait Implementations§
impl Freeze for ContextAddCommand
impl RefUnwindSafe for ContextAddCommand
impl Send for ContextAddCommand
impl Sync for ContextAddCommand
impl Unpin for ContextAddCommand
impl UnwindSafe for ContextAddCommand
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