use std::borrow::Cow;
use crate::Resource;
/// Log emitter configuration.
#[derive(Debug, Default)]
pub struct Config {
/// Contains attributes representing an entity that produces telemetry.
pub resource: Cow<'static, crate::Resource>,
}
impl Config {
/// Specify the attributes representing the entity that produces telemetry
pub fn with_resource(mut self, resource: Resource) -> Self {
self.resource = Cow::Owned(resource);
self
}
}