1
2
3
4
5
6
7
8
/// 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.
pub trait NamedComponent {
    /// Gets the name of the component.
    fn get_component_name(&self) -> &'static str;
}