usecamel_api::CamelError;usecrate::endpoint::Endpoint;/// A Component is a factory for Endpoints.
////// Each component handles a specific URI scheme (e.g. "timer", "log", "direct").
pubtraitComponent: Send + Sync {/// The URI scheme this component handles (e.g., "timer", "log").
fnscheme(&self)->&str;/// Create an endpoint from a URI string.
fncreate_endpoint(&self, uri:&str)->Result<Box<dyn Endpoint>, CamelError>;}