pub struct AppConfig {Show 21 fields
pub bind_addr: SocketAddr,
pub primary_url: String,
pub candidate_url: String,
pub secondary_url: String,
pub enable_secondary: bool,
pub return_target: ReturnTarget,
pub return_fallback: ReturnFallback,
pub response_timing: ResponseTiming,
pub max_body_capture_bytes: usize,
pub max_request_body_bytes: usize,
pub redact_headers: Vec<String>,
pub redact_json_paths: Vec<String>,
pub redact_query_params: Vec<String>,
pub ignored_json_paths: Vec<String>,
pub ignored_headers: Vec<String>,
pub ignore_stderr: bool,
pub storage_path: PathBuf,
pub cors_origins: Vec<String>,
pub admin_token: Option<String>,
pub retention_max_runs: Option<usize>,
pub retention_max_bytes: Option<u64>,
}Fields§
§bind_addr: SocketAddr§primary_url: String§candidate_url: String§secondary_url: String§enable_secondary: bool§return_target: ReturnTarget§return_fallback: ReturnFallback§response_timing: ResponseTiming§max_body_capture_bytes: usize§max_request_body_bytes: usize§redact_headers: Vec<String>§redact_json_paths: Vec<String>§redact_query_params: Vec<String>§ignored_json_paths: Vec<String>§ignored_headers: Vec<String>§ignore_stderr: bool§storage_path: PathBuf§cors_origins: Vec<String>§admin_token: Option<String>§retention_max_runs: Option<usize>§retention_max_bytes: Option<u64>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppConfig
impl<'de> Deserialize<'de> for AppConfig
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
Auto Trait Implementations§
impl Freeze for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnsafeUnpin for AppConfig
impl UnwindSafe for AppConfig
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