pub struct ExtractedVariable {
pub pattern_name: String,
pub original_value: String,
pub byte_offset: usize,
pub byte_length: usize,
pub category: VariableCategory,
}Expand description
One extracted variable occurrence within a prompt block.
Fields§
§pattern_name: StringName of the pattern that matched this value.
original_value: StringOriginal matched value before replacement.
byte_offset: usizeByte offset of the match in the original content.
byte_length: usizeByte length of the original match.
category: VariableCategorySemantic category assigned to the variable.
Trait Implementations§
Source§impl Clone for ExtractedVariable
impl Clone for ExtractedVariable
Source§fn clone(&self) -> ExtractedVariable
fn clone(&self) -> ExtractedVariable
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 ExtractedVariable
impl Debug for ExtractedVariable
Source§impl<'de> Deserialize<'de> for ExtractedVariable
impl<'de> Deserialize<'de> for ExtractedVariable
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 ExtractedVariable
impl PartialEq for ExtractedVariable
Source§fn eq(&self, other: &ExtractedVariable) -> bool
fn eq(&self, other: &ExtractedVariable) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExtractedVariable
impl Serialize for ExtractedVariable
impl Eq for ExtractedVariable
impl StructuralPartialEq for ExtractedVariable
Auto Trait Implementations§
impl Freeze for ExtractedVariable
impl RefUnwindSafe for ExtractedVariable
impl Send for ExtractedVariable
impl Sync for ExtractedVariable
impl Unpin for ExtractedVariable
impl UnsafeUnpin for ExtractedVariable
impl UnwindSafe for ExtractedVariable
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