pub struct StructuredResponse<T>where
T: DeserializeOwned + JsonSchema,{
pub content: T,
pub metadata: Option<Metadata>,
}Fields§
§content: T§metadata: Option<Metadata>Trait Implementations§
Source§impl<T> Clone for StructuredResponse<T>
impl<T> Clone for StructuredResponse<T>
Source§fn clone(&self) -> StructuredResponse<T>
fn clone(&self) -> StructuredResponse<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 moreSource§impl<T> Debug for StructuredResponse<T>
impl<T> Debug for StructuredResponse<T>
Auto Trait Implementations§
impl<T> Freeze for StructuredResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for StructuredResponse<T>where
T: RefUnwindSafe,
impl<T> Send for StructuredResponse<T>where
T: Send,
impl<T> Sync for StructuredResponse<T>where
T: Sync,
impl<T> Unpin for StructuredResponse<T>where
T: Unpin,
impl<T> UnsafeUnpin for StructuredResponse<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for StructuredResponse<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