pub struct StructuredResult<T> {
pub value: T,
pub attempts: u32,
pub request_id: Option<String>,
}Available on crate feature
client only.Expand description
Result of a successful structured output request.
Fields§
§value: TThe parsed, validated value.
attempts: u32Number of attempts made (1 = first attempt succeeded).
request_id: Option<String>Request ID from the server (if available).
Trait Implementations§
Source§impl<T: Clone> Clone for StructuredResult<T>
impl<T: Clone> Clone for StructuredResult<T>
Source§fn clone(&self) -> StructuredResult<T>
fn clone(&self) -> StructuredResult<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for StructuredResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for StructuredResult<T>where
T: RefUnwindSafe,
impl<T> Send for StructuredResult<T>where
T: Send,
impl<T> Sync for StructuredResult<T>where
T: Sync,
impl<T> Unpin for StructuredResult<T>where
T: Unpin,
impl<T> UnwindSafe for StructuredResult<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