pub struct InjectionDef {
pub source: String,
pub target: String,
pub entity_type: Option<String>,
pub mode: String,
pub priority: i32,
pub max_tokens: Option<i32>,
pub top_k: Option<usize>,
pub threshold: Option<f32>,
}Fields§
§source: String§target: String§entity_type: Option<String>Explicit entity type this injection targets (e.g., “note”, “artifact”).
mode: String§priority: i32§max_tokens: Option<i32>§top_k: Option<usize>§threshold: Option<f32>Trait Implementations§
Source§impl Clone for InjectionDef
impl Clone for InjectionDef
Source§fn clone(&self) -> InjectionDef
fn clone(&self) -> InjectionDef
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 InjectionDef
impl Debug for InjectionDef
Source§impl<'de> Deserialize<'de> for InjectionDef
impl<'de> Deserialize<'de> for InjectionDef
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 InjectionDef
impl RefUnwindSafe for InjectionDef
impl Send for InjectionDef
impl Sync for InjectionDef
impl Unpin for InjectionDef
impl UnwindSafe for InjectionDef
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