pub struct OpenSearchConfig {
pub host: String,
pub port: u16,
pub username: Option<String>,
pub password: Option<String>,
pub default_operation: Option<OpenSearchOperation>,
pub index_name: Option<String>,
}Expand description
Global OpenSearch configuration defaults.
This struct holds component-level defaults that can be set via Camel.toml and applied to endpoint configurations when specific values aren’t provided.
Fields§
§host: String§port: u16§username: Option<String>§password: Option<String>§default_operation: Option<OpenSearchOperation>§index_name: Option<String>Implementations§
Source§impl OpenSearchConfig
impl OpenSearchConfig
pub fn with_host(self, v: impl Into<String>) -> Self
pub fn with_port(self, v: u16) -> Self
pub fn with_default_operation(self, v: OpenSearchOperation) -> Self
pub fn with_username(self, v: impl Into<String>) -> Self
pub fn with_password(self, v: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for OpenSearchConfig
impl Clone for OpenSearchConfig
Source§fn clone(&self) -> OpenSearchConfig
fn clone(&self) -> OpenSearchConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenSearchConfig
impl Debug for OpenSearchConfig
Source§impl Default for OpenSearchConfig
impl Default for OpenSearchConfig
Source§impl<'de> Deserialize<'de> for OpenSearchConfig
impl<'de> Deserialize<'de> for OpenSearchConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OpenSearchConfig
impl RefUnwindSafe for OpenSearchConfig
impl Send for OpenSearchConfig
impl Sync for OpenSearchConfig
impl Unpin for OpenSearchConfig
impl UnsafeUnpin for OpenSearchConfig
impl UnwindSafe for OpenSearchConfig
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