Skip to main content

RpcCapabilities

Struct RpcCapabilities 

Source
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: bool

Trait Implementations§

Source§

impl Clone for RpcCapabilities

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RpcCapabilities

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RpcCapabilities

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl GoJson for RpcCapabilities

Source§

const GO_TYPE: &'static str = "pluginhost.rpcCapabilities"

Go type name, for error messages.
Source§

fn encode(&self, out: &mut Vec<u8>)

Appends json.Marshal output.
Source§

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

Go omitempty: false, 0, “”, nil or empty slices and maps, nil pointers. Structs (including time.Time) are never empty.
Source§

fn go_type() -> String

The Go type as decode errors spell it; containers name their element type ([]string, map[string]interface {}).
Source§

fn decode(v: &Node) -> Result<Self, DecodeError>

json.Unmarshal into a zero value.
Source§

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

Whether null resets the field (slices, maps, pointers, any); scalars and structs keep their value.
Source§

impl GoStruct for RpcCapabilities

Source§

fn encode_fields(&self, w: &mut ObjWriter<'_>)

Source§

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

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RpcCapabilities

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more