#[non_exhaustive]pub struct SyntheticExample {
pub fields: Vec<SyntheticField>,
/* private fields */
}Available on crate feature
data-foundry-service only.Expand description
Represents a single synthetic example, composed of multiple fields. Used for providing few-shot examples in the request and for returning generated examples in the response.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.fields: Vec<SyntheticField>Required. A list of fields that constitute an example.
Implementations§
Source§impl SyntheticExample
impl SyntheticExample
pub fn new() -> Self
Sourcepub fn set_fields<T, V>(self, v: T) -> Self
pub fn set_fields<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for SyntheticExample
impl Clone for SyntheticExample
Source§fn clone(&self) -> SyntheticExample
fn clone(&self) -> SyntheticExample
Returns a duplicate of the value. Read more
1.0.0 · 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 SyntheticExample
impl Debug for SyntheticExample
Source§impl Default for SyntheticExample
impl Default for SyntheticExample
Source§fn default() -> SyntheticExample
fn default() -> SyntheticExample
Returns the “default value” for a type. Read more
Source§impl Message for SyntheticExample
impl Message for SyntheticExample
Source§impl PartialEq for SyntheticExample
impl PartialEq for SyntheticExample
impl StructuralPartialEq for SyntheticExample
Auto Trait Implementations§
impl Freeze for SyntheticExample
impl RefUnwindSafe for SyntheticExample
impl Send for SyntheticExample
impl Sync for SyntheticExample
impl Unpin for SyntheticExample
impl UnwindSafe for SyntheticExample
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