pub struct StreamingResponse {
pub chunk_id: u64,
pub total_chunks: Option<u64>,
pub is_final: bool,
pub data: Value,
}
Expand description
Streaming response
Fieldsยง
ยงchunk_id: u64
ยงtotal_chunks: Option<u64>
ยงis_final: bool
ยงdata: Value
Trait Implementationsยง
Sourceยงimpl Clone for StreamingResponse
impl Clone for StreamingResponse
Sourceยงfn clone(&self) -> StreamingResponse
fn clone(&self) -> StreamingResponse
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 Debug for StreamingResponse
impl Debug for StreamingResponse
Sourceยงimpl<'de> Deserialize<'de> for StreamingResponse
impl<'de> Deserialize<'de> for StreamingResponse
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
Sourceยงimpl PartialEq for StreamingResponse
impl PartialEq for StreamingResponse
Sourceยงimpl Serialize for StreamingResponse
impl Serialize for StreamingResponse
impl StructuralPartialEq for StreamingResponse
Auto Trait Implementationsยง
impl Freeze for StreamingResponse
impl RefUnwindSafe for StreamingResponse
impl Send for StreamingResponse
impl Sync for StreamingResponse
impl Unpin for StreamingResponse
impl UnwindSafe for StreamingResponse
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