pub enum OutputFormat {
Markdown,
Xml,
Json,
Custom,
}Expand description
Output format for generated prompts.
Variants§
Markdown
Markdown format with code blocks
Xml
XML format with structured tags
Json
JSON format with metadata
Custom
Custom format with external template
Implementations§
Source§impl OutputFormat
impl OutputFormat
Sourcepub const fn extension(self) -> &'static str
pub const fn extension(self) -> &'static str
Returns the file extension for this format.
For Custom format, returns a default extension “txt”.
Use Config::custom_extension for the actual custom extension.
Sourcepub const fn template_name(self) -> &'static str
pub const fn template_name(self) -> &'static str
Returns the template name for this format.
For Custom format, returns a default name “custom”.
Use Config::custom_format_name for the actual custom template name.
Trait Implementations§
Source§impl Clone for OutputFormat
impl Clone for OutputFormat
Source§fn clone(&self) -> OutputFormat
fn clone(&self) -> OutputFormat
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputFormat
impl Debug for OutputFormat
Source§impl From<Format> for OutputFormat
impl From<Format> for OutputFormat
Source§impl PartialEq for OutputFormat
impl PartialEq for OutputFormat
impl Copy for OutputFormat
impl Eq for OutputFormat
impl StructuralPartialEq for OutputFormat
Auto Trait Implementations§
impl Freeze for OutputFormat
impl RefUnwindSafe for OutputFormat
impl Send for OutputFormat
impl Sync for OutputFormat
impl Unpin for OutputFormat
impl UnwindSafe for OutputFormat
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)