pub struct RecorderConfig {
pub enabled: bool,
pub database_path: String,
pub api_enabled: bool,
pub api_port: Option<u16>,
pub max_requests: i64,
pub retention_days: i64,
pub record_http: bool,
pub record_grpc: bool,
pub record_websocket: bool,
pub record_graphql: bool,
}
Expand description
API Flight Recorder configuration
Fields§
§enabled: bool
Enable recording
database_path: String
Database file path
api_enabled: bool
Enable management API
api_port: Option<u16>
Management API port (if different from main port)
max_requests: i64
Maximum number of requests to store (0 for unlimited)
retention_days: i64
Auto-delete requests older than N days (0 to disable)
record_http: bool
Record HTTP requests
record_grpc: bool
Record gRPC requests
record_websocket: bool
Record WebSocket messages
record_graphql: bool
Record GraphQL requests
Trait Implementations§
Source§impl Clone for RecorderConfig
impl Clone for RecorderConfig
Source§fn clone(&self) -> RecorderConfig
fn clone(&self) -> RecorderConfig
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 RecorderConfig
impl Debug for RecorderConfig
Source§impl Default for RecorderConfig
impl Default for RecorderConfig
Source§impl<'de> Deserialize<'de> for RecorderConfigwhere
RecorderConfig: Default,
impl<'de> Deserialize<'de> for RecorderConfigwhere
RecorderConfig: Default,
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 RecorderConfig
impl RefUnwindSafe for RecorderConfig
impl Send for RecorderConfig
impl Sync for RecorderConfig
impl Unpin for RecorderConfig
impl UnwindSafe for RecorderConfig
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