pub struct OpenSearchComponent { /* private fields */ }Implementations§
Source§impl OpenSearchComponent
impl OpenSearchComponent
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new OpenSearchComponent without global config defaults.
Endpoint configs will fall back to hardcoded defaults via merge_with_global().
Sourcepub fn with_config(config: OpenSearchConfig) -> Self
pub fn with_config(config: OpenSearchConfig) -> Self
Create an OpenSearchComponent with global config defaults. These will be applied to endpoint configs when specific values aren’t provided.
Sourcepub fn with_optional_config(config: Option<OpenSearchConfig>) -> Self
pub fn with_optional_config(config: Option<OpenSearchConfig>) -> Self
Create an OpenSearchComponent with optional global config defaults.
If None, behaves like new() (uses hardcoded defaults only).
Trait Implementations§
Source§impl Component for OpenSearchComponent
impl Component for OpenSearchComponent
Source§fn create_endpoint(
&self,
uri: &str,
_ctx: &dyn ComponentContext,
) -> Result<Box<dyn Endpoint>, CamelError>
fn create_endpoint( &self, uri: &str, _ctx: &dyn ComponentContext, ) -> Result<Box<dyn Endpoint>, CamelError>
Create an endpoint from a URI string.
Auto Trait Implementations§
impl Freeze for OpenSearchComponent
impl RefUnwindSafe for OpenSearchComponent
impl Send for OpenSearchComponent
impl Sync for OpenSearchComponent
impl Unpin for OpenSearchComponent
impl UnsafeUnpin for OpenSearchComponent
impl UnwindSafe for OpenSearchComponent
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