pub struct PromptFrontmatter {
pub name: Option<String>,
pub purpose: Option<String>,
pub extends: Option<String>,
}Expand description
Frontmatter for prompt templates
Fields§
§name: Option<String>Name of the prompt
purpose: Option<String>Purpose/description of the prompt
extends: Option<String>Parent prompt name to extend from
Trait Implementations§
Source§impl Debug for PromptFrontmatter
impl Debug for PromptFrontmatter
Source§impl Default for PromptFrontmatter
impl Default for PromptFrontmatter
Source§fn default() -> PromptFrontmatter
fn default() -> PromptFrontmatter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromptFrontmatter
impl<'de> Deserialize<'de> for PromptFrontmatter
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 PromptFrontmatter
impl RefUnwindSafe for PromptFrontmatter
impl Send for PromptFrontmatter
impl Sync for PromptFrontmatter
impl Unpin for PromptFrontmatter
impl UnwindSafe for PromptFrontmatter
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