pub struct PromptVariableMappingRead {
pub variable: String,
pub source: Option<String>,
pub json_path: Option<Option<String>>,
}Expand description
PromptVariableMappingRead : Connects one prompt variable to source data. source is null when the mapping is incomplete.
Fields§
§variable: StringPrompt variable name without braces.
source: Option<String>Stored source field populating the variable, or null when the mapping is incomplete.
json_path: Option<Option<String>>Optional JSONPath selector applied to the selected source.
Implementations§
Source§impl PromptVariableMappingRead
impl PromptVariableMappingRead
Sourcepub fn builder() -> PromptVariableMappingReadBuilder
pub fn builder() -> PromptVariableMappingReadBuilder
Create an instance of PromptVariableMappingRead using the builder syntax
Trait Implementations§
Source§impl Clone for PromptVariableMappingRead
impl Clone for PromptVariableMappingRead
Source§impl Debug for PromptVariableMappingRead
impl Debug for PromptVariableMappingRead
Source§impl<'de> Deserialize<'de> for PromptVariableMappingRead
impl<'de> Deserialize<'de> for PromptVariableMappingRead
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
impl StructuralPartialEq for PromptVariableMappingRead
Source§impl Validate for PromptVariableMappingRead
impl Validate for PromptVariableMappingRead
Source§fn validate_into(&self, _path: &Path<'_>, _errors: &mut Vec<ValidationError>)
fn validate_into(&self, _path: &Path<'_>, _errors: &mut Vec<ValidationError>)
Pushes every value that breaks a keyword onto
errors, with its path below path, and nothing when the value
is valid. validate() calls it with Path::root; a model calls it on the models it holds with their path.Auto Trait Implementations§
impl Forget for PromptVariableMappingRead
impl Freeze for PromptVariableMappingRead
impl Move for PromptVariableMappingRead
impl RefUnwindSafe for PromptVariableMappingRead
impl Send for PromptVariableMappingRead
impl Sync for PromptVariableMappingRead
impl Unpin for PromptVariableMappingRead
impl UnsafeUnpin for PromptVariableMappingRead
impl UnwindSafe for PromptVariableMappingRead
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