pub struct SystemPromptPreset {
pub type_: String,
pub preset: String,
pub append: Option<String>,
}Expand description
Preset configuration for the system prompt.
Uses Claude Code’s built-in system prompt with an optional appended section.
§Fields
type_— Must be"preset".preset— Must be"claude_code"to use Claude Code’s system prompt.append— Optional additional instructions to append to the preset system prompt.
Fields§
§type_: StringDiscriminator field for preset prompts (typically "preset").
preset: StringPreset name (typically "claude_code").
append: Option<String>Extra instructions appended to the preset prompt.
Trait Implementations§
Source§impl Clone for SystemPromptPreset
impl Clone for SystemPromptPreset
Source§fn clone(&self) -> SystemPromptPreset
fn clone(&self) -> SystemPromptPreset
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 SystemPromptPreset
impl Debug for SystemPromptPreset
Source§impl Default for SystemPromptPreset
impl Default for SystemPromptPreset
Source§impl<'de> Deserialize<'de> for SystemPromptPreset
impl<'de> Deserialize<'de> for SystemPromptPreset
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 PartialEq for SystemPromptPreset
impl PartialEq for SystemPromptPreset
Source§impl Serialize for SystemPromptPreset
impl Serialize for SystemPromptPreset
impl Eq for SystemPromptPreset
impl StructuralPartialEq for SystemPromptPreset
Auto Trait Implementations§
impl Freeze for SystemPromptPreset
impl RefUnwindSafe for SystemPromptPreset
impl Send for SystemPromptPreset
impl Sync for SystemPromptPreset
impl Unpin for SystemPromptPreset
impl UnsafeUnpin for SystemPromptPreset
impl UnwindSafe for SystemPromptPreset
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