pub struct AliasDefinition {
pub name: String,
pub index: String,
pub filter: Option<EsQuery>,
pub routing: Option<String>,
pub is_write_index: bool,
}Expand description
别名定义
Fields§
§name: String别名名称
index: String目标索引
filter: Option<EsQuery>过滤条件(可选,仅匹配的文档可见)
routing: Option<String>路由值(可选)
is_write_index: bool是否为写入索引
Implementations§
Trait Implementations§
Source§impl Clone for AliasDefinition
impl Clone for AliasDefinition
Source§fn clone(&self) -> AliasDefinition
fn clone(&self) -> AliasDefinition
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 AliasDefinition
impl Debug for AliasDefinition
Source§impl<'de> Deserialize<'de> for AliasDefinition
impl<'de> Deserialize<'de> for AliasDefinition
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
Source§impl PartialEq for AliasDefinition
impl PartialEq for AliasDefinition
Source§impl Serialize for AliasDefinition
impl Serialize for AliasDefinition
impl StructuralPartialEq for AliasDefinition
Auto Trait Implementations§
impl Freeze for AliasDefinition
impl RefUnwindSafe for AliasDefinition
impl Send for AliasDefinition
impl Sync for AliasDefinition
impl Unpin for AliasDefinition
impl UnsafeUnpin for AliasDefinition
impl UnwindSafe for AliasDefinition
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