pub struct Noul<'a> { /* private fields */ }Expand description
A yes/no question: how true is a statement about the state?
Every member is optional. yes and no describe what counts as each
outcome; they are sent as the criteria object’s true and false
members, and that object is left off entirely when neither is set.
use typesafe_sdk::question::Noul;
let spam = Noul::new()
.instructions("Is this message spam?")
.yes("unsolicited advertising")
.no("a legitimate conversation");Implementations§
Source§impl<'a> Noul<'a>
impl<'a> Noul<'a>
Sourcepub fn instructions(self, instructions: impl Into<Content<'a>>) -> Self
pub fn instructions(self, instructions: impl Into<Content<'a>>) -> Self
The question or statement to evaluate, as text or a JSON object or array. Setting it again replaces it.
Trait Implementations§
impl<'a> Eq for Noul<'a>
impl<'a> StructuralPartialEq for Noul<'a>
Auto Trait Implementations§
impl<'a> Freeze for Noul<'a>
impl<'a> RefUnwindSafe for Noul<'a>
impl<'a> Send for Noul<'a>
impl<'a> Sync for Noul<'a>
impl<'a> Unpin for Noul<'a>
impl<'a> UnsafeUnpin for Noul<'a>
impl<'a> UnwindSafe for Noul<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.