pub struct ExtractionResult {
pub span_id: SpanId,
pub template_content: String,
pub variables: Vec<ExtractedVariable>,
}Expand description
Variable extraction result for one prompt block.
Fields§
§span_id: SpanIdSpan identifier of the analyzed block.
template_content: StringBlock content with extracted values replaced by placeholders.
variables: Vec<ExtractedVariable>Variables extracted from the block.
Trait Implementations§
Source§impl Clone for ExtractionResult
impl Clone for ExtractionResult
Source§fn clone(&self) -> ExtractionResult
fn clone(&self) -> ExtractionResult
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 ExtractionResult
impl Debug for ExtractionResult
Source§impl<'de> Deserialize<'de> for ExtractionResult
impl<'de> Deserialize<'de> for ExtractionResult
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 ExtractionResult
impl PartialEq for ExtractionResult
Source§fn eq(&self, other: &ExtractionResult) -> bool
fn eq(&self, other: &ExtractionResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExtractionResult
impl Serialize for ExtractionResult
impl StructuralPartialEq for ExtractionResult
Auto Trait Implementations§
impl Freeze for ExtractionResult
impl RefUnwindSafe for ExtractionResult
impl Send for ExtractionResult
impl Sync for ExtractionResult
impl Unpin for ExtractionResult
impl UnsafeUnpin for ExtractionResult
impl UnwindSafe for ExtractionResult
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