pub struct PromptTask {
pub task: Task,
pub builtin: String,
pub format: String,
pub active: Option<u32>,
pub builtin_changed: Option<u32>,
pub sections: Vec<GuideSectionText>,
pub versions: Vec<Version>,
}Fields§
§task: Task§builtin: String§format: StringThe reply format and its JSON schema, added after whichever instructions run.
active: Option<u32>None: the built-in prompt.
builtin_changed: Option<u32>The active version, when a release changed the built-in prompt since it was written.
sections: Vec<GuideSectionText>Style guide only: the built-in guidance of each section.
versions: Vec<Version>Trait Implementations§
Source§impl Clone for PromptTask
impl Clone for PromptTask
Source§impl Debug for PromptTask
impl Debug for PromptTask
Source§impl<'de> Deserialize<'de> for PromptTask
impl<'de> Deserialize<'de> for PromptTask
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 PromptTask
impl Freeze for PromptTask
impl RefUnwindSafe for PromptTask
impl Send for PromptTask
impl Sync for PromptTask
impl Unpin for PromptTask
impl UnsafeUnpin for PromptTask
impl UnwindSafe for PromptTask
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