pub struct StreamingCallbackHttpResponse {
pub body: Vec<u8>,
pub token: Option<StreamingCallbackToken>,
}Expand description
流式响应的响应体
Fields§
§body: Vec<u8>响应体
token: Option<StreamingCallbackToken>下一次流式回调需要使用的 token,None 表示响应结束
Implementations§
Trait Implementations§
Source§impl Clone for StreamingCallbackHttpResponse
impl Clone for StreamingCallbackHttpResponse
Source§fn clone(&self) -> StreamingCallbackHttpResponse
fn clone(&self) -> StreamingCallbackHttpResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for StreamingCallbackHttpResponse
impl Default for StreamingCallbackHttpResponse
Source§fn default() -> StreamingCallbackHttpResponse
fn default() -> StreamingCallbackHttpResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamingCallbackHttpResponse
impl<'de> Deserialize<'de> for StreamingCallbackHttpResponse
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 Freeze for StreamingCallbackHttpResponse
impl RefUnwindSafe for StreamingCallbackHttpResponse
impl Send for StreamingCallbackHttpResponse
impl Sync for StreamingCallbackHttpResponse
impl Unpin for StreamingCallbackHttpResponse
impl UnsafeUnpin for StreamingCallbackHttpResponse
impl UnwindSafe for StreamingCallbackHttpResponse
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