Struct UpstreamConfig
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§
§impl UpstreamConfig
impl UpstreamConfig
pub fn validate(&self) -> Result<(), ConfigError>
pub fn redacted_view(&self) -> UpstreamConfigView
Trait Implementations§
§impl Clone for UpstreamConfig
impl Clone for UpstreamConfig
§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 more§impl Debug for UpstreamConfig
impl Debug for UpstreamConfig
§impl Default for UpstreamConfig
impl Default for UpstreamConfig
§fn default() -> UpstreamConfig
fn default() -> UpstreamConfig
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for UpstreamConfig
impl<'de> Deserialize<'de> for UpstreamConfig
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpstreamConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpstreamConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for UpstreamConfig
impl PartialEq for UpstreamConfig
§impl Serialize for UpstreamConfig
impl Serialize for UpstreamConfig
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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.