vector_config/named.rs
1/// A component with a well-known name.
2///
3/// Users can derive this trait automatically by using the
4/// [`NamedComponent`][derive@crate::NamedComponent] derive macro on their structs/enums.
5pub trait NamedComponent {
6 /// Gets the name of the component.
7 fn get_component_name(&self) -> &'static str;
8}