pub struct GetPromptRequestParams {
pub arguments: BTreeMap<String, String>,
pub name: String,
}
Expand description
GetPromptRequestParams
JSON schema
{
"type": "object",
"required": [
"name"
],
"properties": {
"arguments": {
"description": "Arguments to use for templating the prompt.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"description": "The name of the prompt or prompt template.",
"type": "string"
}
}
}
Fields§
§arguments: BTreeMap<String, String>
Arguments to use for templating the prompt.
name: String
The name of the prompt or prompt template.
Implementations§
Source§impl GetPromptRequestParams
impl GetPromptRequestParams
pub fn new(name: &str) -> Self
pub fn with_arguments<K, V>( self, arguments: impl IntoIterator<Item = (K, V)>, ) -> Self
Trait Implementations§
Source§impl Clone for GetPromptRequestParams
impl Clone for GetPromptRequestParams
Source§fn clone(&self) -> GetPromptRequestParams
fn clone(&self) -> GetPromptRequestParams
Returns a copy of the value. Read more
1.0.0 · 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 GetPromptRequestParams
impl Debug for GetPromptRequestParams
Source§impl<'de> Deserialize<'de> for GetPromptRequestParams
impl<'de> Deserialize<'de> for GetPromptRequestParams
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 From<&GetPromptRequestParams> for GetPromptRequestParams
impl From<&GetPromptRequestParams> for GetPromptRequestParams
Source§fn from(value: &GetPromptRequestParams) -> Self
fn from(value: &GetPromptRequestParams) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GetPromptRequestParams
impl PartialEq for GetPromptRequestParams
Source§impl Serialize for GetPromptRequestParams
impl Serialize for GetPromptRequestParams
impl StructuralPartialEq for GetPromptRequestParams
Auto Trait Implementations§
impl Freeze for GetPromptRequestParams
impl RefUnwindSafe for GetPromptRequestParams
impl Send for GetPromptRequestParams
impl Sync for GetPromptRequestParams
impl Unpin for GetPromptRequestParams
impl UnwindSafe for GetPromptRequestParams
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