pub struct Noul {
pub instructions: Value,
pub criteria: Option<NoulCriteria>,
}Expand description
A yes/no question. The answer is the probability that the answer is “yes”.
Fields§
§instructions: ValueThe yes/no question to evaluate. A string or arbitrary JSON structure.
criteria: Option<NoulCriteria>Optional descriptions of what a “yes” and a “no” mean.
Implementations§
Source§impl Noul
impl Noul
Sourcepub fn new(instructions: impl IntoContent) -> Self
pub fn new(instructions: impl IntoContent) -> Self
Create a yes/no question.
Sourcepub fn criteria(self, criteria: NoulCriteria) -> Self
pub fn criteria(self, criteria: NoulCriteria) -> Self
Describe what “yes” and “no” mean.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Noul
impl<'de> Deserialize<'de> for Noul
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 Noul
impl RefUnwindSafe for Noul
impl Send for Noul
impl Sync for Noul
impl Unpin for Noul
impl UnsafeUnpin for Noul
impl UnwindSafe for Noul
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