pub struct UpstreamConfig {Show 13 fields
pub name: String,
pub enabled: bool,
pub url: Option<String>,
pub bearer_token_env: Option<String>,
pub command: Option<String>,
pub args: Vec<String>,
pub env: BTreeMap<String, String>,
pub oauth: Option<GatewayUpstreamOauthConfig>,
pub proxy_resources: bool,
pub proxy_prompts: bool,
pub expose_tools: Option<Vec<String>>,
pub expose_resources: Option<Vec<String>>,
pub expose_prompts: Option<Vec<String>>,
}Fields§
§name: String§enabled: bool§url: Option<String>§bearer_token_env: Option<String>§command: Option<String>§args: Vec<String>§env: BTreeMap<String, String>§oauth: Option<GatewayUpstreamOauthConfig>§proxy_resources: bool§proxy_prompts: bool§expose_tools: Option<Vec<String>>§expose_resources: Option<Vec<String>>§expose_prompts: Option<Vec<String>>Implementations§
Source§impl UpstreamConfig
impl UpstreamConfig
pub fn validate(&self) -> Result<(), ConfigError>
pub fn redacted_view(&self) -> UpstreamConfigView
Trait Implementations§
Source§impl Clone for UpstreamConfig
impl Clone for UpstreamConfig
Source§fn clone(&self) -> UpstreamConfig
fn clone(&self) -> UpstreamConfig
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 UpstreamConfig
impl Debug for UpstreamConfig
Source§impl Default for UpstreamConfig
impl Default for UpstreamConfig
Source§impl<'de> Deserialize<'de> for UpstreamConfig
impl<'de> Deserialize<'de> for UpstreamConfig
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 UpstreamConfig
impl PartialEq for UpstreamConfig
Source§fn eq(&self, other: &UpstreamConfig) -> bool
fn eq(&self, other: &UpstreamConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpstreamConfig
impl Serialize for UpstreamConfig
impl Eq for UpstreamConfig
impl StructuralPartialEq for UpstreamConfig
Auto Trait Implementations§
impl Freeze for UpstreamConfig
impl RefUnwindSafe for UpstreamConfig
impl Send for UpstreamConfig
impl Sync for UpstreamConfig
impl Unpin for UpstreamConfig
impl UnsafeUnpin for UpstreamConfig
impl UnwindSafe for UpstreamConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.