Skip to content
Snippets Groups Projects
Commit 351bfc82 authored by Denis Smirnov's avatar Denis Smirnov Committed by Georgy Moshkin
Browse files

feat: add traits to the index structures

parent 7a1c3a71
No related branches found
No related tags found
1 merge request!486feat: add some traits to the index
......@@ -240,7 +240,7 @@ pub type IndexSequenceOption = SequenceOpt;
/// Sequence option for new or updated index.
///
/// For details see [specifying a sequence in create_index](https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_schema_sequence/create_index/#box-schema-sequence-create-index).
#[derive(Serialize, tlua::Push)]
#[derive(Deserialize, Serialize, PartialEq, tlua::Push)]
pub enum SequenceOpt {
IdAndField(SeqSpec),
AutoGenerated(bool),
......@@ -287,7 +287,7 @@ impl From<bool> for SequenceOpt {
}
}
#[derive(Serialize, tlua::Push)]
#[derive(Deserialize, Serialize, PartialEq, tlua::Push)]
pub struct SeqSpec {
id: Option<NumOrStr>,
field: Option<NumOrStr>,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment