pub struct PromptConfig {
pub id: String,
pub version: Option<String>,
pub variables: Option<HashMap<String, String>>,
}
Expand description
Service tier request options.
Fields§
§id: String
The unique identifier of the prompt template to use.
version: Option<String>
Optional version of the prompt template.
variables: Option<HashMap<String, String>>
Optional map of values to substitute in for variables in your prompt. The substitution values can either be strings, or other Response input types like images or files. For now only supporting Strings.
Trait Implementations§
Source§impl Clone for PromptConfig
impl Clone for PromptConfig
Source§fn clone(&self) -> PromptConfig
fn clone(&self) -> PromptConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PromptConfig
impl Debug for PromptConfig
Source§impl<'de> Deserialize<'de> for PromptConfig
impl<'de> Deserialize<'de> for PromptConfig
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 PromptConfig
impl PartialEq for PromptConfig
Source§impl Serialize for PromptConfig
impl Serialize for PromptConfig
impl StructuralPartialEq for PromptConfig
Auto Trait Implementations§
impl Freeze for PromptConfig
impl RefUnwindSafe for PromptConfig
impl Send for PromptConfig
impl Sync for PromptConfig
impl Unpin for PromptConfig
impl UnwindSafe for PromptConfig
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