#[non_exhaustive]pub struct Index {
pub name: String,
pub index_type: String,
pub params: Option<HashMap<String, Value>>,
pub plan_params: Option<HashMap<String, Value>>,
pub prev_index_uuid: Option<String>,
pub source_name: Option<String>,
pub source_params: Option<HashMap<String, Value>>,
pub source_type: Option<String>,
pub source_uuid: Option<String>,
pub uuid: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§index_type: String§params: Option<HashMap<String, Value>>§plan_params: Option<HashMap<String, Value>>§prev_index_uuid: Option<String>§source_name: Option<String>§source_params: Option<HashMap<String, Value>>§source_type: Option<String>§source_uuid: Option<String>§uuid: Option<String>Implementations§
Source§impl Index
impl Index
pub fn new(name: impl Into<String>, index_type: impl Into<String>) -> Self
pub fn params(self, params: impl Into<Option<HashMap<String, Value>>>) -> Self
pub fn plan_params( self, plan_params: impl Into<Option<HashMap<String, Value>>>, ) -> Self
pub fn prev_index_uuid(self, prev_index_uuid: impl Into<Option<String>>) -> Self
pub fn source_name(self, source_name: impl Into<Option<String>>) -> Self
pub fn source_params( self, source_params: impl Into<Option<HashMap<String, Value>>>, ) -> Self
pub fn source_type(self, source_type: impl Into<Option<String>>) -> Self
pub fn source_uuid(self, source_uuid: impl Into<Option<String>>) -> Self
pub fn uuid(self, uuid: impl Into<Option<String>>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Index
impl<'de> Deserialize<'de> for Index
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 Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnsafeUnpin for Index
impl UnwindSafe for Index
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