pub struct InjectionConfig {
pub source: String,
pub target: String,
pub mode: CompiledInjectionMode,
pub priority: i32,
pub max_tokens: Option<i32>,
pub filter: Option<CompiledFilter>,
}Expand description
Compiled injection configuration.
Fields§
§source: String§target: String§mode: CompiledInjectionMode§priority: i32§max_tokens: Option<i32>§filter: Option<CompiledFilter>Trait Implementations§
Source§impl Clone for InjectionConfig
impl Clone for InjectionConfig
Source§fn clone(&self) -> InjectionConfig
fn clone(&self) -> InjectionConfig
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 InjectionConfig
impl Debug for InjectionConfig
Source§impl<'de> Deserialize<'de> for InjectionConfig
impl<'de> Deserialize<'de> for InjectionConfig
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 InjectionConfig
impl PartialEq for InjectionConfig
Source§impl Serialize for InjectionConfig
impl Serialize for InjectionConfig
impl StructuralPartialEq for InjectionConfig
Auto Trait Implementations§
impl Freeze for InjectionConfig
impl RefUnwindSafe for InjectionConfig
impl Send for InjectionConfig
impl Sync for InjectionConfig
impl Unpin for InjectionConfig
impl UnwindSafe for InjectionConfig
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