pub struct PromptDef {
pub text: Option<String>,
pub file: Option<String>,
}Fields§
§text: Option<String>§file: Option<String>A file relative to the plugin directory; read at load time.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PromptDef
impl<'de> Deserialize<'de> for PromptDef
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 Forget for PromptDef
impl Freeze for PromptDef
impl Move for PromptDef
impl RefUnwindSafe for PromptDef
impl Send for PromptDefwhere
RawVecInner: Send,
impl Sync for PromptDefwhere
RawVecInner: Sync,
impl Unpin for PromptDef
impl UnsafeUnpin for PromptDef
impl UnwindSafe for PromptDefwhere
RawVecInner: UnwindSafe,
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