Struct tarantool::index::Builder

source ·
pub struct Builder<'a> { /* private fields */ }

Implementations§

Creates a new index builder with default options.

Add a part to the index’s parts list.

Use this method to set each part individually or use parts to set parts in bulk. The difference is purely syntactical.

Add parts to the index’s parts list.

Use this method to set parts in bulk or use part to set each part individually. The difference is purely syntactical.

use tarantool::{space::Space, index::FieldType as FT};

Space::find("t").unwrap()
    .index_builder("by_index_and_type")
    .parts([(0, FT::Unsigned), (1, FT::String)])
    .create();

Space::find("t").unwrap()
    .index_builder("by_name")
    .parts(["foo", "bar", "baz"])
    .create();

Destructure the builder struct into a tuple of space_id, name and index options.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.