pub struct InputQuestionsValue {
pub criteria: Option<InputQuestionsValueCriteria>,
pub instructions: Option<String>,
pub type_: Option<InputQuestionsValueType>,
}Expand description
A named question definition.
Fields§
§criteria: Option<InputQuestionsValueCriteria>Used by a choice question as an object of possible choices, or by a score question as an ordered array of score legend entries.
instructions: Option<String>Instructions describing what the model should evaluate or answer.
type_: Option<InputQuestionsValueType>Question type.
Implementations§
Source§impl InputQuestionsValue
impl InputQuestionsValue
pub fn builder() -> InputQuestionsValue
Trait Implementations§
Source§impl Clone for InputQuestionsValue
impl Clone for InputQuestionsValue
Source§impl Debug for InputQuestionsValue
impl Debug for InputQuestionsValue
Source§impl Default for InputQuestionsValue
impl Default for InputQuestionsValue
Source§impl<'de> Deserialize<'de> for InputQuestionsValue
impl<'de> Deserialize<'de> for InputQuestionsValue
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
Source§impl From<InputQuestionsValue> for InputQuestionsValue
impl From<InputQuestionsValue> for InputQuestionsValue
Source§fn from(value: InputQuestionsValue) -> Self
fn from(value: InputQuestionsValue) -> Self
Converts to this type from the input type.
Source§impl Serialize for InputQuestionsValue
impl Serialize for InputQuestionsValue
Source§impl TryFrom<InputQuestionsValue> for InputQuestionsValue
impl TryFrom<InputQuestionsValue> for InputQuestionsValue
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: InputQuestionsValue) -> Result<Self, ConversionError>
fn try_from(value: InputQuestionsValue) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for InputQuestionsValue
impl Freeze for InputQuestionsValuewhere
*const u8 is !null: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<String>: Freeze,
PhantomData<u8>: Freeze,
impl Move for InputQuestionsValue
impl RefUnwindSafe for InputQuestionsValue
impl Send for InputQuestionsValue
impl Sync for InputQuestionsValue
impl Unpin for InputQuestionsValue
impl UnsafeUnpin for InputQuestionsValuewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for InputQuestionsValue
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