pub struct Index {
pub enabled: bool,
pub schema: IndexSchema,
pub on_error: Option<FailurePolicy>,
}Expand description
One index in a Config, paired with whether it is built on this run.
Fields§
§enabled: bool§schema: IndexSchema§on_error: Option<FailurePolicy>Per-index override of Config::on_error. None inherits the global
policy. Lives here (not in IndexSchema) on purpose: it’s operational,
not part of the document shape, so changing it does not alter the index
mapping hash or trigger a reindex.
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