pub struct ConfigBuilder {Show 15 fields
pub address: Option<String>,
pub port: Option<u16>,
pub user_agent: Option<String>,
pub http_referer: Option<String>,
pub x_title: Option<String>,
pub mcp_connect_timeout: Option<u64>,
pub mcp_call_timeout: Option<u64>,
pub mcp_backoff_current_interval: Option<u64>,
pub mcp_backoff_initial_interval: Option<u64>,
pub mcp_backoff_randomization_factor: Option<f64>,
pub mcp_backoff_multiplier: Option<f64>,
pub mcp_backoff_max_interval: Option<u64>,
pub mcp_backoff_max_elapsed_time: Option<u64>,
pub mcp_encryption_key: Option<[u8; 32]>,
pub suppress_output: Option<bool>,
}Fields§
§address: Option<String>§port: Option<u16>§user_agent: Option<String>§http_referer: Option<String>§x_title: Option<String>§mcp_connect_timeout: Option<u64>§mcp_call_timeout: Option<u64>§mcp_backoff_current_interval: Option<u64>§mcp_backoff_initial_interval: Option<u64>§mcp_backoff_randomization_factor: Option<f64>§mcp_backoff_multiplier: Option<f64>§mcp_backoff_max_interval: Option<u64>§mcp_backoff_max_elapsed_time: Option<u64>§mcp_encryption_key: Option<[u8; 32]>256-bit AEAD key. None → the proxy generates one ephemeral
key per process. See [EnvConfigBuilder]’s mcp_encryption_key
doc.
suppress_output: Option<bool>Implementations§
Trait Implementations§
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Source§impl Envconfig for ConfigBuilder
impl Envconfig for ConfigBuilder
Source§fn init() -> Result<Self, Error>
fn init() -> Result<Self, Error>
👎Deprecated since 0.9.0:
Function init() is deprecated. Please use init_from_env() instead.
Initialize structure from environment variables.
Deprecated in favor of [
::init_from_env()]. Read moreAuto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnsafeUnpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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> 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