pub struct OpenRouterPluginConfig {
pub web: Option<OpenRouterWebSearchPlugin>,
pub file: Option<OpenRouterFilePlugin>,
}Expand description
OpenRouter plugin configuration bundling optional plugin activations.
Any None plugin is omitted from the wire request. When all plugins are
None, no plugins field is emitted.
Fields§
§web: Option<OpenRouterWebSearchPlugin>Web-search plugin.
file: Option<OpenRouterFilePlugin>File-reader plugin.
Implementations§
Trait Implementations§
Source§impl Clone for OpenRouterPluginConfig
impl Clone for OpenRouterPluginConfig
Source§fn clone(&self) -> OpenRouterPluginConfig
fn clone(&self) -> OpenRouterPluginConfig
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 Debug for OpenRouterPluginConfig
impl Debug for OpenRouterPluginConfig
Source§impl Default for OpenRouterPluginConfig
impl Default for OpenRouterPluginConfig
Source§fn default() -> OpenRouterPluginConfig
fn default() -> OpenRouterPluginConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OpenRouterPluginConfig
impl<'de> Deserialize<'de> for OpenRouterPluginConfig
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
Source§impl PartialEq for OpenRouterPluginConfig
impl PartialEq for OpenRouterPluginConfig
Source§fn eq(&self, other: &OpenRouterPluginConfig) -> bool
fn eq(&self, other: &OpenRouterPluginConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OpenRouterPluginConfig
impl Serialize for OpenRouterPluginConfig
impl StructuralPartialEq for OpenRouterPluginConfig
Auto Trait Implementations§
impl Freeze for OpenRouterPluginConfig
impl RefUnwindSafe for OpenRouterPluginConfig
impl Send for OpenRouterPluginConfig
impl Sync for OpenRouterPluginConfig
impl Unpin for OpenRouterPluginConfig
impl UnsafeUnpin for OpenRouterPluginConfig
impl UnwindSafe for OpenRouterPluginConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request