pub struct PromptPreFetchPayload {
pub prompt_id: String,
pub args: Option<HashMap<String, String>>,
}Expand description
prompt_pre_fetch — mirrors PromptPrehookPayload.
Note args is dict[str, str] here, not dict[str, Any] as on the tool
payload.
Fields§
§prompt_id: String§args: Option<HashMap<String, String>>Trait Implementations§
Source§impl Clone for PromptPreFetchPayload
impl Clone for PromptPreFetchPayload
Source§impl Debug for PromptPreFetchPayload
impl Debug for PromptPreFetchPayload
Source§impl Default for PromptPreFetchPayload
impl Default for PromptPreFetchPayload
Source§impl<'de> Deserialize<'de> for PromptPreFetchPayload
impl<'de> Deserialize<'de> for PromptPreFetchPayload
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 PluginPayload for PromptPreFetchPayload
impl PluginPayload for PromptPreFetchPayload
Source§fn clone_boxed(&self) -> Box<dyn PluginPayload>
fn clone_boxed(&self) -> Box<dyn PluginPayload>
Clone this payload into a new
Box<dyn PluginPayload>. Read moreSource§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Downcast to a concrete type via
&mut dyn Any.Auto Trait Implementations§
impl Freeze for PromptPreFetchPayload
impl RefUnwindSafe for PromptPreFetchPayload
impl Send for PromptPreFetchPayload
impl Sync for PromptPreFetchPayload
impl Unpin for PromptPreFetchPayload
impl UnsafeUnpin for PromptPreFetchPayload
impl UnwindSafe for PromptPreFetchPayload
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