pub struct ParsedResponse<T> {
pub response: Response,
pub parsed: T,
}Available on crate feature
structured-output only.Expand description
表示已经解析出结构化对象的 Responses 结果。
Fields§
§response: Response原始 Responses 结果。
parsed: T反序列化后的结构化对象。
Trait Implementations§
Source§impl<T: Clone> Clone for ParsedResponse<T>
impl<T: Clone> Clone for ParsedResponse<T>
Source§fn clone(&self) -> ParsedResponse<T>
fn clone(&self) -> ParsedResponse<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 ParsedResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParsedResponse<T>where
T: RefUnwindSafe,
impl<T> Send for ParsedResponse<T>where
T: Send,
impl<T> Sync for ParsedResponse<T>where
T: Sync,
impl<T> Unpin for ParsedResponse<T>where
T: Unpin,
impl<T> UnsafeUnpin for ParsedResponse<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ParsedResponse<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