pub struct StreamChunkInterceptRequest {
pub request_id: String,
pub source_format: String,
pub model: String,
pub requested_model: String,
pub request_headers: Header,
pub response_headers: Header,
pub original_request: Bytes,
pub request_body: Bytes,
pub body: Bytes,
pub history_chunks: Vec<Bytes>,
pub chunk_index: i64,
pub metadata: Metadata,
}Fields§
§request_id: String§source_format: String§model: String§requested_model: String§request_headers: Header§response_headers: Header§original_request: Bytes§request_body: Bytes§body: Bytes§history_chunks: Vec<Bytes>§chunk_index: i64§metadata: MetadataTrait Implementations§
Source§impl Clone for StreamChunkInterceptRequest
impl Clone for StreamChunkInterceptRequest
Source§impl Debug for StreamChunkInterceptRequest
impl Debug for StreamChunkInterceptRequest
Source§impl GoJson for StreamChunkInterceptRequest
impl GoJson for StreamChunkInterceptRequest
Source§const GO_TYPE: &'static str = "pluginapi.StreamChunkInterceptRequest"
const GO_TYPE: &'static str = "pluginapi.StreamChunkInterceptRequest"
Go type name, for error messages.
Source§fn decode_into(&mut self, v: &Node) -> Result<(), DecodeError>
fn decode_into(&mut self, v: &Node) -> Result<(), DecodeError>
json.Unmarshal into an existing value. null resets slices, maps, pointers and
any, and leaves everything else alone.Source§fn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Go
omitempty: false, 0, “”, nil or empty slices and maps, nil pointers. Structs
(including time.Time) are never empty.Source§fn go_type() -> String
fn go_type() -> String
The Go type as decode errors spell it; containers name their element type
(
[]string, map[string]interface {}).Source§fn decode_value(v: &Node) -> Result<Self, DecodeError>
fn decode_value(v: &Node) -> Result<Self, DecodeError>
Decodes a non-null value from scratch. Implement this or
Self::decode_into.Source§const NULL_CLEARS: bool = false
const NULL_CLEARS: bool = false
Whether
null resets the field (slices, maps, pointers, any); scalars and
structs keep their value.Source§impl GoStruct for StreamChunkInterceptRequest
impl GoStruct for StreamChunkInterceptRequest
fn encode_fields(&self, w: &mut ObjWriter<'_>)
Source§fn decode_field(
&mut self,
key: &str,
v: &Node,
) -> Option<Result<(), DecodeError>>
fn decode_field( &mut self, key: &str, v: &Node, ) -> Option<Result<(), DecodeError>>
Decodes
v into the field named key (exact match first, then
case-insensitive). None when no field matches.impl StructuralPartialEq for StreamChunkInterceptRequest
Auto Trait Implementations§
impl !Freeze for StreamChunkInterceptRequest
impl Forget for StreamChunkInterceptRequest
impl Move for StreamChunkInterceptRequest
impl RefUnwindSafe for StreamChunkInterceptRequest
impl Send for StreamChunkInterceptRequest
impl Sync for StreamChunkInterceptRequest
impl Unpin for StreamChunkInterceptRequest
impl UnsafeUnpin for StreamChunkInterceptRequest
impl UnwindSafe for StreamChunkInterceptRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more