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 Default for PromptVariableMappingRead
impl Default 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
Auto Trait Implementations§
impl Freeze 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