pub struct PluginPromptPreset {
pub id: String,
pub name: String,
pub description: Option<String>,
pub content: String,
}Expand description
Inline prompt preset, mirroring bamboo-server’s
StoredPromptPreset { id, name, description?, content } (see
crates/app/bamboo-server/src/handlers/agent/prompt_presets/types.rs).
id must satisfy the same rule bamboo-server enforces:
[a-z0-9_], length <= 80 (see is_valid_preset_id).
Fields§
§id: String§name: String§description: Option<String>§content: StringTrait Implementations§
Source§impl Clone for PluginPromptPreset
impl Clone for PluginPromptPreset
Source§fn clone(&self) -> PluginPromptPreset
fn clone(&self) -> PluginPromptPreset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PluginPromptPreset
impl Debug for PluginPromptPreset
Source§impl<'de> Deserialize<'de> for PluginPromptPreset
impl<'de> Deserialize<'de> for PluginPromptPreset
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 PluginPromptPreset
impl RefUnwindSafe for PluginPromptPreset
impl Send for PluginPromptPreset
impl Sync for PluginPromptPreset
impl Unpin for PluginPromptPreset
impl UnsafeUnpin for PluginPromptPreset
impl UnwindSafe for PluginPromptPreset
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