pub struct IndexOptions {
Show 14 fields pub type: Option<IndexType>, pub id: Option<u32>, pub unique: Option<bool>, pub if_not_exists: Option<bool>, pub parts: Option<Vec<Part>>, pub dimension: Option<u32>, pub distance: Option<RtreeIndexDistanceType>, pub bloom_fpr: Option<f32>, pub page_size: Option<u32>, pub range_size: Option<u32>, pub run_count_per_level: Option<u32>, pub run_size_ratio: Option<f32>, pub sequence: Option<SequenceOpt>, pub func: Option<String>,
}
Expand description

List of options for new or updated index.

For details see space_object:create_index - options.

Fields§

§type: Option<IndexType>§id: Option<u32>§unique: Option<bool>§if_not_exists: Option<bool>§parts: Option<Vec<Part>>§dimension: Option<u32>§distance: Option<RtreeIndexDistanceType>§bloom_fpr: Option<f32>§page_size: Option<u32>§range_size: Option<u32>§run_count_per_level: Option<u32>§run_size_ratio: Option<f32>§sequence: Option<SequenceOpt>§func: Option<String>

Trait Implementations§

source§

impl Default for IndexOptions

source§

fn default() -> IndexOptions

Returns the “default value” for a type. Read more
source§

impl<__AsLuaTypeParam> Push<__AsLuaTypeParam> for IndexOptions
where __AsLuaTypeParam: AsLua,

§

type Err = Void

Error that can happen when pushing a value.
source§

fn push_to_lua( &self, __lua: __AsLuaTypeParam ) -> Result<PushGuard<__AsLuaTypeParam>, (Self::Err, __AsLuaTypeParam)>

Pushes the value on the top of the stack. Read more
source§

fn push_no_err(&self, lua: L) -> PushGuard<L>
where Self::Err: Into<Void>,

Same as push_to_lua but can only succeed and is only available if Err implements Into<Void>.
source§

impl Serialize for IndexOptions

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<__AsLuaTypeParam> PushOne<__AsLuaTypeParam> for IndexOptions
where __AsLuaTypeParam: AsLua,

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.