Trait vector_config::NamedComponent
source · pub trait NamedComponent {
// Required method
fn get_component_name(&self) -> &'static str;
}Expand description
A component with a well-known name.
Users can derive this trait automatically by using the
[component_name][vector-config::component_name] macro on their structs/enums.
Required Methods§
sourcefn get_component_name(&self) -> &'static str
fn get_component_name(&self) -> &'static str
Gets the name of the component.