Skip to navigation

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct ExtractedVariable {
pub pattern_name: String,
pub original_value: String,
pub byte_offset: usize,
pub byte_length: usize,
pub category: VariableCategory,
}

Referenced types: String, usize, VariableCategory

One extracted variable occurrence within a prompt block.

Fields

pattern_name: String

Name of the pattern that matched this value.

original_value: String

Original matched value before replacement.

byte_offset: usize

Byte offset of the match in the original content.

byte_length: usize

Byte length of the original match.

category: VariableCategory

Semantic category assigned to the variable.

Trait Implementations

impl Clone for ExtractedVariable

impl Clone for ExtractedVariable

Referenced types: Clone, ExtractedVariable

clone

fn clone(&self) -> ExtractedVariable

Referenced types: clone, ExtractedVariable

clone_from

fn clone_from(&mut self, source: &Self)

Referenced types: clone_from

impl Debug for ExtractedVariable

impl Debug for ExtractedVariable

Referenced types: Debug, ExtractedVariable

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Referenced types: fmt, Formatter, Result

impl<'de> Deserialize<'de> for ExtractedVariable

impl<'de> Deserialize<'de> for ExtractedVariable

Referenced types: Deserialize, ExtractedVariable

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,

Referenced types: deserialize, Result, Error, Deserializer

impl PartialEq for ExtractedVariable

impl PartialEq for ExtractedVariable

Referenced types: PartialEq, ExtractedVariable

eq

fn eq(&self, other: &ExtractedVariable) -> bool

Referenced types: eq, ExtractedVariable, bool

ne

fn ne(&self, other: &Rhs) -> bool

Referenced types: ne, &Rhs, bool

impl Serialize for ExtractedVariable

impl Serialize for ExtractedVariable

Referenced types: Serialize, ExtractedVariable

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,

Referenced types: serialize, Result, Ok, Error, Serializer

impl Eq for ExtractedVariable

impl Eq for ExtractedVariable

Referenced types: Eq, ExtractedVariable

impl StructuralPartialEq for ExtractedVariable

impl StructuralPartialEq for ExtractedVariable

Referenced types: StructuralPartialEq, ExtractedVariable