macro_rules! implicit_data {
($type:ty) => { ... };
($type:ty, context: $context:expr) => { ... };
($type:ty, $context:expr) => { ... };
($type:ty, source: $source:expr) => { ... };
($type:ty, force: true) => { ... };
($type:ty, timestamp: $secs:expr) => { ... };
($type:ty, location: true) => { ... };
($type:ty, force: true, location: true) => { ... };
($type:ty, $($key:ident: $value:expr),+ $(,)?) => { ... };
}
Expand description
Macro to generate implicit data at the call site
This macro provides several forms:
implicit_data!(Type)
- Generate with default settingsimplicit_data!(Type, context: map)
- Generate with context mapimplicit_data!(Type, source: error)
- Generate with source errorimplicit_data!(Type, force: true)
- Force generation (for backtraces)implicit_data!(Type, timestamp: secs)
- Generate with specific timestampimplicit_data!(Type, location: true)
- Include location information