#[non_exhaustive]pub struct LoggingComponentConfig {
pub enable_components: Vec<Component>,
}Expand description
LoggingComponentConfig is cluster logging component configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enable_components: Vec<Component>Select components to collect logs. An empty set would disable all logging.
Implementations§
Source§impl LoggingComponentConfig
impl LoggingComponentConfig
Sourcepub fn set_enable_components<T, V>(self, v: T) -> Self
pub fn set_enable_components<T, V>(self, v: T) -> Self
Sets the value of enable_components.
Trait Implementations§
Source§impl Clone for LoggingComponentConfig
impl Clone for LoggingComponentConfig
Source§fn clone(&self) -> LoggingComponentConfig
fn clone(&self) -> LoggingComponentConfig
Returns a copy 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 LoggingComponentConfig
impl Debug for LoggingComponentConfig
Source§impl Default for LoggingComponentConfig
impl Default for LoggingComponentConfig
Source§fn default() -> LoggingComponentConfig
fn default() -> LoggingComponentConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LoggingComponentConfigwhere
LoggingComponentConfig: Default,
impl<'de> Deserialize<'de> for LoggingComponentConfigwhere
LoggingComponentConfig: 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
Source§impl Message for LoggingComponentConfig
impl Message for LoggingComponentConfig
Source§impl PartialEq for LoggingComponentConfig
impl PartialEq for LoggingComponentConfig
Source§impl Serialize for LoggingComponentConfig
impl Serialize for LoggingComponentConfig
impl StructuralPartialEq for LoggingComponentConfig
Auto Trait Implementations§
impl Freeze for LoggingComponentConfig
impl RefUnwindSafe for LoggingComponentConfig
impl Send for LoggingComponentConfig
impl Sync for LoggingComponentConfig
impl Unpin for LoggingComponentConfig
impl UnwindSafe for LoggingComponentConfig
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