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