pub struct OutputStyleConfig {
pub name: String,
pub description: String,
pub prompt: String,
pub source: OutputStyleSource,
pub keep_coding_instructions: Option<bool>,
pub force_for_plugin: Option<bool>,
}Expand description
Configuration for an output style
Fields§
§name: String§description: String§prompt: String§source: OutputStyleSource§keep_coding_instructions: Option<bool>§force_for_plugin: Option<bool>Implementations§
Source§impl OutputStyleConfig
impl OutputStyleConfig
pub fn new(name: &str, description: &str, prompt: &str) -> Self
pub fn with_keep_coding_instructions(self, keep: bool) -> Self
pub fn with_source(self, source: OutputStyleSource) -> Self
Trait Implementations§
Source§impl Clone for OutputStyleConfig
impl Clone for OutputStyleConfig
Source§fn clone(&self) -> OutputStyleConfig
fn clone(&self) -> OutputStyleConfig
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 moreAuto Trait Implementations§
impl Freeze for OutputStyleConfig
impl RefUnwindSafe for OutputStyleConfig
impl Send for OutputStyleConfig
impl Sync for OutputStyleConfig
impl Unpin for OutputStyleConfig
impl UnsafeUnpin for OutputStyleConfig
impl UnwindSafe for OutputStyleConfig
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