pub struct GenerateObjectResult<T> {
pub value: T,
pub raw_json: String,
pub usage: Usage,
pub attempts: u32,
}Expand description
The result of a successful generate_object call.
Fields§
§value: TThe deserialized, validated object.
raw_json: StringThe raw JSON string returned by the model.
usage: UsageToken usage for the successful attempt (and all retries).
attempts: u32How many attempts were made (1 = succeeded on first try).
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for GenerateObjectResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for GenerateObjectResult<T>where
T: RefUnwindSafe,
impl<T> Send for GenerateObjectResult<T>where
T: Send,
impl<T> Sync for GenerateObjectResult<T>where
T: Sync,
impl<T> Unpin for GenerateObjectResult<T>where
T: Unpin,
impl<T> UnwindSafe for GenerateObjectResult<T>where
T: UnwindSafe,
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