pub struct PromptTry {
pub task: Task,
pub text: String,
pub sections: BTreeMap<String, String>,
pub sample: Option<String>,
pub section: Option<String>,
}Expand description
POST /api/v1/prompts/try: run text on one sample without saving it.
Fields§
§task: Task§text: String§sections: BTreeMap<String, String>§sample: Option<String>A symbol id for a summary, an entry point for a walkthrough, a repository for a style guide; otherwise the most used one, the furthest-reaching flow or the first repository.
section: Option<String>Style guide only: the section to write; the first one otherwise.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PromptTry
impl<'de> Deserialize<'de> for PromptTry
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 PromptTry
impl Freeze for PromptTry
impl RefUnwindSafe for PromptTry
impl Send for PromptTry
impl Sync for PromptTry
impl Unpin for PromptTry
impl UnsafeUnpin for PromptTry
impl UnwindSafe for PromptTry
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