pub struct ServiceAttributeStore {
pub crate_name: &'static str,
pub pkg_name: &'static str,
pub version: &'static str,
pub version_major: &'static str,
pub version_minor: &'static str,
pub version_patch: &'static str,
}Expand description
Compile-time attributes to be provided by the owning application/service.
Used as a set of parameters to pass to init()
Service attributes can be generated and passed in using the build_attrs macro, e.g.:
use tracing_kickstart::TracingConfig;
let attrs = tracing_kickstart::build_attrs!();
let conf = TracingConfig::default();
let custom_fallback_env_filter = None;
let extra_resource_attrs = None;
let tracing_providers = tracing_kickstart::init(attrs, &conf, custom_fallback_env_filter, extra_resource_attrs).unwrap();Fields§
§crate_name: &'static str§pkg_name: &'static str§version: &'static str§version_major: &'static str§version_minor: &'static str§version_patch: &'static strImplementations§
Trait Implementations§
Source§impl Clone for ServiceAttributeStore
impl Clone for ServiceAttributeStore
Source§fn clone(&self) -> ServiceAttributeStore
fn clone(&self) -> ServiceAttributeStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServiceAttributeStore
impl RefUnwindSafe for ServiceAttributeStore
impl Send for ServiceAttributeStore
impl Sync for ServiceAttributeStore
impl Unpin for ServiceAttributeStore
impl UnsafeUnpin for ServiceAttributeStore
impl UnwindSafe for ServiceAttributeStore
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