pub struct Output {
pub body: Option<OutputBody>,
pub content_type: Option<OutputContentType>,
}Expand description
Successful response structure from the Perplexity Agent API. Returns either a JSON response or an SSE stream depending on the stream setting.
Fields§
§body: Option<OutputBody>Response payload, either a JSON response object or an SSE event stream represented as an array of event objects.
content_type: Option<OutputContentType>Response content type depends on stream: application/json for non-streaming responses, text/event-stream for SSE streaming.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Output
impl<'de> Deserialize<'de> for Output
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Output
impl Freeze for Outputwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Map<String, Value>>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<SseEventStreamItem>: Freeze,
impl Move for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Outputwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Map<String, Value>>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<SseEventStreamItem>: UnsafeUnpin,
impl UnwindSafe for Output
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