pub struct SystemOneRequest {
pub state: String,
pub model: Option<String>,
pub calibration: Option<Calibration>,
pub questions: Vec<Question>,
}Expand description
A shared state plus the questions to ask about it.
Unknown fields are refused rather than ignored: a misspelt calibraton would otherwise
be dropped without a word, and the answers would come back uncalibrated.
Fields§
§state: StringThe context every question is asked against.
model: Option<String>Model name or configured alias. Falls back to the server’s default when absent.
calibration: Option<Calibration>Overrides the calibration applied to label logits.
questions: Vec<Question>The questions. Ids must be unique within a request.
Trait Implementations§
Source§impl Clone for SystemOneRequest
impl Clone for SystemOneRequest
Source§fn clone(&self) -> SystemOneRequest
fn clone(&self) -> SystemOneRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for SystemOneRequest
impl ComposeSchema for SystemOneRequest
Source§impl Debug for SystemOneRequest
impl Debug for SystemOneRequest
Source§impl<'de> Deserialize<'de> for SystemOneRequest
impl<'de> Deserialize<'de> for SystemOneRequest
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 Serialize for SystemOneRequest
impl Serialize for SystemOneRequest
Auto Trait Implementations§
impl Freeze for SystemOneRequest
impl RefUnwindSafe for SystemOneRequest
impl Send for SystemOneRequest
impl Sync for SystemOneRequest
impl Unpin for SystemOneRequest
impl UnsafeUnpin for SystemOneRequest
impl UnwindSafe for SystemOneRequest
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