pub struct PromptVariableMappingReadBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> PromptVariableMappingReadBuilder<S>
impl<S: State> PromptVariableMappingReadBuilder<S>
Sourcepub fn build(self) -> PromptVariableMappingReadwhere
S: IsComplete,
pub fn build(self) -> PromptVariableMappingReadwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn variable(
self,
value: String,
) -> PromptVariableMappingReadBuilder<SetVariable<S>>where
S::Variable: IsUnset,
pub fn variable(
self,
value: String,
) -> PromptVariableMappingReadBuilder<SetVariable<S>>where
S::Variable: IsUnset,
Required.
Prompt variable name without braces.
Sourcepub fn source(
self,
value: String,
) -> PromptVariableMappingReadBuilder<SetSource<S>>where
S::Source: IsUnset,
pub fn source(
self,
value: String,
) -> PromptVariableMappingReadBuilder<SetSource<S>>where
S::Source: IsUnset,
Sourcepub fn maybe_source(
self,
value: Option<String>,
) -> PromptVariableMappingReadBuilder<SetSource<S>>where
S::Source: IsUnset,
pub fn maybe_source(
self,
value: Option<String>,
) -> PromptVariableMappingReadBuilder<SetSource<S>>where
S::Source: IsUnset,
Sourcepub fn json_path(
self,
value: Option<String>,
) -> PromptVariableMappingReadBuilder<SetJsonPath<S>>where
S::JsonPath: IsUnset,
pub fn json_path(
self,
value: Option<String>,
) -> PromptVariableMappingReadBuilder<SetJsonPath<S>>where
S::JsonPath: IsUnset,
Sourcepub fn maybe_json_path(
self,
value: Option<Option<String>>,
) -> PromptVariableMappingReadBuilder<SetJsonPath<S>>where
S::JsonPath: IsUnset,
pub fn maybe_json_path(
self,
value: Option<Option<String>>,
) -> PromptVariableMappingReadBuilder<SetJsonPath<S>>where
S::JsonPath: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for PromptVariableMappingReadBuilder<S>
impl<S> RefUnwindSafe for PromptVariableMappingReadBuilder<S>
impl<S> Send for PromptVariableMappingReadBuilder<S>
impl<S> Sync for PromptVariableMappingReadBuilder<S>
impl<S> Unpin for PromptVariableMappingReadBuilder<S>
impl<S> UnsafeUnpin for PromptVariableMappingReadBuilder<S>
impl<S> UnwindSafe for PromptVariableMappingReadBuilder<S>
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