pub struct ClientConfig {
pub backend: String,
pub shadow: bool,
pub model: Option<String>,
pub timeout_ms: Option<String>,
pub policy: Option<String>,
pub base_url: Option<String>,
pub api_key: Option<String>,
pub typesafe_key: Option<String>,
pub allow_private_http: bool,
pub cascade: Option<String>,
pub log_path: Option<PathBuf>,
pub cache_capacity: Option<usize>,
}Expand description
Fields from_env already reads. Hosts can fill this instead of exporting variables.
Fields§
§backend: String§shadow: bool§model: Option<String>§timeout_ms: Option<String>§policy: Option<String>§base_url: Option<String>§api_key: Option<String>§typesafe_key: Option<String>§allow_private_http: bool§cascade: Option<String>§log_path: Option<PathBuf>§cache_capacity: Option<usize>Some(0) leaves the cache off. Some(n) keeps n identical gate results.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§impl Debug for ClientConfig
impl Debug for ClientConfig
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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