pub struct LambdaConfig {
pub log_requests: bool,
pub log_responses: bool,
pub base_path: Option<String>,
}Expand description
Lambda runtime configuration.
Fields§
§log_requests: boolEnable request logging.
log_responses: boolEnable response logging.
base_path: Option<String>Custom base path to strip (e.g., “/prod”, “/dev”).
Implementations§
Source§impl LambdaConfig
impl LambdaConfig
Sourcepub fn log_requests(self, enabled: bool) -> Self
pub fn log_requests(self, enabled: bool) -> Self
Enable request logging.
Sourcepub fn log_responses(self, enabled: bool) -> Self
pub fn log_responses(self, enabled: bool) -> Self
Enable response logging.
Trait Implementations§
Source§impl Clone for LambdaConfig
impl Clone for LambdaConfig
Source§fn clone(&self) -> LambdaConfig
fn clone(&self) -> LambdaConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 LambdaConfig
impl Debug for LambdaConfig
Auto Trait Implementations§
impl Freeze for LambdaConfig
impl RefUnwindSafe for LambdaConfig
impl Send for LambdaConfig
impl Sync for LambdaConfig
impl Unpin for LambdaConfig
impl UnwindSafe for LambdaConfig
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