pub struct PromptsConfig {
pub extra_dirs: Vec<String>,
}Expand description
Configuration for prompt template directories.
Fields§
§extra_dirs: Vec<String>Additional directories to load custom prompt templates from. Templates in these directories override built-in templates with the same name.
Trait Implementations§
Source§impl Clone for PromptsConfig
impl Clone for PromptsConfig
Source§fn clone(&self) -> PromptsConfig
fn clone(&self) -> PromptsConfig
Returns a duplicate 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 PromptsConfig
impl Debug for PromptsConfig
Source§impl Default for PromptsConfig
impl Default for PromptsConfig
Source§impl<'de> Deserialize<'de> for PromptsConfigwhere
PromptsConfig: Default,
impl<'de> Deserialize<'de> for PromptsConfigwhere
PromptsConfig: Default,
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
Auto Trait Implementations§
impl Freeze for PromptsConfig
impl RefUnwindSafe for PromptsConfig
impl Send for PromptsConfig
impl Sync for PromptsConfig
impl Unpin for PromptsConfig
impl UnsafeUnpin for PromptsConfig
impl UnwindSafe for PromptsConfig
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