Struct Config
pub struct Config {
app_id: Id,
format: Format,
description: String,
root_ctx_id: Id,
root_ctx_description: String,
}Available on crate feature
dlt only.Expand description
DLT configuration.
§Example Serialization
app_id = "HB" # Required.
format = "verbose" # Optional. Default is "basic".
description = "Humpback" # Optional. Default is empty.
root_ctx_id = "root" # Optional. Default is "root".
root_ctx_description = "Root context" # Optional. Default is empty.Fields§
§app_id: Id§format: Format§description: String§root_ctx_id: Id§root_ctx_description: StringImplementations§
§impl Config
impl Config
pub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Returns the application description.
pub const fn root_ctx_id(&self) -> Id
pub const fn root_ctx_id(&self) -> Id
Returns the root context ID.
pub fn root_ctx_description(&self) -> Option<&str>
pub fn root_ctx_description(&self) -> Option<&str>
Returns the root context description.
Trait Implementations§
§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
§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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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