pub struct DiffRequest {
pub batch: Option<Vec<DiffItem>>,
pub current: Option<DiffCurrent>,
pub previous: Option<ChangeTrackingSnapshot>,
pub modes: Option<Vec<ChangeTrackingMode>>,
pub schema: Option<Value>,
pub prompt: Option<String>,
pub content_type: Option<String>,
pub tag: Option<String>,
pub goal: Option<String>,
pub judge_enabled: Option<bool>,
}Expand description
Request body. The presence of batch selects batch mode. Single-mode
fields are flattened onto the same struct; in batch mode modes/schema/ prompt/contentType act as shared defaults for items that omit them.
Fields§
§batch: Option<Vec<DiffItem>>§current: Option<DiffCurrent>§previous: Option<ChangeTrackingSnapshot>§modes: Option<Vec<ChangeTrackingMode>>§schema: Option<Value>§prompt: Option<String>§content_type: Option<String>§tag: Option<String>§goal: Option<String>§judge_enabled: Option<bool>Trait Implementations§
Source§impl Clone for DiffRequest
impl Clone for DiffRequest
Source§fn clone(&self) -> DiffRequest
fn clone(&self) -> DiffRequest
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 Debug for DiffRequest
impl Debug for DiffRequest
Source§impl<'de> Deserialize<'de> for DiffRequest
impl<'de> Deserialize<'de> for DiffRequest
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 DiffRequest
impl RefUnwindSafe for DiffRequest
impl Send for DiffRequest
impl Sync for DiffRequest
impl Unpin for DiffRequest
impl UnsafeUnpin for DiffRequest
impl UnwindSafe for DiffRequest
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