pub struct RpcCapabilities {Show 27 fields
pub model_registrar: bool,
pub model_provider: bool,
pub auth_provider: bool,
pub frontend_auth_provider: bool,
pub frontend_auth_provider_exclusive: bool,
pub scheduler: bool,
pub scheduler_across_priorities: bool,
pub model_router: bool,
pub executor: bool,
pub executor_model_scope: String,
pub executor_input_formats: Vec<String>,
pub executor_output_formats: Vec<String>,
pub request_translator: bool,
pub request_normalizer: bool,
pub request_interceptor: bool,
pub request_lifecycle_plugin: bool,
pub response_translator: bool,
pub response_before_translator: bool,
pub response_after_translator: bool,
pub response_interceptor: bool,
pub stream_chunk_interceptor: bool,
pub websocket_response_observer: bool,
pub thinking_applier: bool,
pub usage_plugin: bool,
pub command_line_plugin: bool,
pub management_api: bool,
pub quota_provider: bool,
}Expand description
rpcCapabilities.
Fields§
§model_registrar: bool§model_provider: bool§auth_provider: bool§frontend_auth_provider: bool§frontend_auth_provider_exclusive: bool§scheduler: bool§scheduler_across_priorities: bool§model_router: bool§executor: bool§executor_model_scope: String§executor_input_formats: Vec<String>§executor_output_formats: Vec<String>§request_translator: bool§request_normalizer: bool§request_interceptor: bool§request_lifecycle_plugin: bool§response_translator: bool§response_before_translator: bool§response_after_translator: bool§response_interceptor: bool§stream_chunk_interceptor: bool§websocket_response_observer: bool§thinking_applier: bool§usage_plugin: bool§command_line_plugin: bool§management_api: bool§quota_provider: boolTrait Implementations§
Source§impl Clone for RpcCapabilities
impl Clone for RpcCapabilities
Source§impl Debug for RpcCapabilities
impl Debug for RpcCapabilities
Source§impl Default for RpcCapabilities
impl Default for RpcCapabilities
Source§impl GoJson for RpcCapabilities
impl GoJson for RpcCapabilities
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 RpcCapabilities
impl GoStruct for RpcCapabilities
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.Source§impl PartialEq for RpcCapabilities
impl PartialEq for RpcCapabilities
impl StructuralPartialEq for RpcCapabilities
Auto Trait Implementations§
impl Forget for RpcCapabilities
impl Freeze for RpcCapabilities
impl Move for RpcCapabilities
impl RefUnwindSafe for RpcCapabilities
impl Send for RpcCapabilities
impl Sync for RpcCapabilities
impl Unpin for RpcCapabilities
impl UnsafeUnpin for RpcCapabilities
impl UnwindSafe for RpcCapabilities
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