pub struct LlmInferenceHttpRequestChunkRequest {
pub binary: Option<bool>,
pub cancel: Option<bool>,
pub cancel_reason: Option<String>,
pub data: String,
pub end: Option<bool>,
pub request_id: RequestId,
}Expand description
A request body chunk or cancellation signal.
Fields§
§binary: Option<bool>When true, data is base64-encoded bytes. When absent or false, data is UTF-8 text.
cancel: Option<bool>When true, the runtime is cancelling the in-flight request (e.g. upstream consumer aborted). data is ignored. Implies end-of-request.
cancel_reason: Option<String>Optional human-readable reason for the cancellation, propagated for logging.
data: StringBody byte range. UTF-8 text when binary is absent or false; base64-encoded bytes when binary is true. May be empty.
end: Option<bool>When true, this is the final body chunk for the request. The SDK may rely on having received an end-marked chunk before treating the request body as complete.
request_id: RequestIdMatches the requestId from the originating httpRequestStart frame.
Trait Implementations§
Source§impl Clone for LlmInferenceHttpRequestChunkRequest
impl Clone for LlmInferenceHttpRequestChunkRequest
Source§fn clone(&self) -> LlmInferenceHttpRequestChunkRequest
fn clone(&self) -> LlmInferenceHttpRequestChunkRequest
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 LlmInferenceHttpRequestChunkRequest
impl Default for LlmInferenceHttpRequestChunkRequest
Source§fn default() -> LlmInferenceHttpRequestChunkRequest
fn default() -> LlmInferenceHttpRequestChunkRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LlmInferenceHttpRequestChunkRequest
impl<'de> Deserialize<'de> for LlmInferenceHttpRequestChunkRequest
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 LlmInferenceHttpRequestChunkRequest
impl RefUnwindSafe for LlmInferenceHttpRequestChunkRequest
impl Send for LlmInferenceHttpRequestChunkRequest
impl Sync for LlmInferenceHttpRequestChunkRequest
impl Unpin for LlmInferenceHttpRequestChunkRequest
impl UnsafeUnpin for LlmInferenceHttpRequestChunkRequest
impl UnwindSafe for LlmInferenceHttpRequestChunkRequest
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