Struct tarantool::index::Part

source ·
pub struct Part {
    pub field: NumOrStr,
    pub type: Option<FieldType>,
    pub collation: Option<String>,
    pub is_nullable: Option<bool>,
    pub path: Option<String>,
}
Expand description

Index part.

Fields§

§field: NumOrStr§type: Option<FieldType>§collation: Option<String>§is_nullable: Option<bool>§path: Option<String>

Implementations§

source§

impl Part

source

pub fn field(field: impl Into<NumOrStr>) -> Self

source

pub fn field_type(self, type: FieldType) -> Self

source

pub fn collation(self, collation: impl Into<String>) -> Self

source

pub fn is_nullable(self, is_nullable: bool) -> Self

source

pub fn path(self, path: impl Into<String>) -> Self

source

pub fn new(fi: impl Into<NumOrStr>, ft: FieldType) -> Self

Trait Implementations§

source§

impl Clone for Part

source§

fn clone(&self) -> Part

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Part

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Part

source§

fn default() -> Part

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

impl<'de> Deserialize<'de> for Part

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<&str> for Part

source§

fn from(f: &str) -> Self

Converts to this type from the input type.
source§

impl From<(&str, FieldType)> for Part

source§

fn from((f, t): (&str, FieldType)) -> Self

Converts to this type from the input type.
source§

impl From<(String, FieldType)> for Part

source§

fn from((f, t): (String, FieldType)) -> Self

Converts to this type from the input type.
source§

impl From<(u32, FieldType)> for Part

source§

fn from((f, t): (u32, FieldType)) -> Self

Converts to this type from the input type.
source§

impl From<String> for Part

source§

fn from(f: String) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Part

source§

fn from(f: u32) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Part

source§

fn eq(&self, other: &Part) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<__AsLuaTypeParam> Push<__AsLuaTypeParam> for Part
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 Part

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 Eq for Part

source§

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

source§

impl StructuralEq for Part

source§

impl StructuralPartialEq for Part

Auto Trait Implementations§

§

impl RefUnwindSafe for Part

§

impl Send for Part

§

impl Sync for Part

§

impl Unpin for Part

§

impl UnwindSafe for Part

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<'de, T> Decode<'de> for T
where T: Deserialize<'de>,

source§

fn decode(data: &'de [u8]) -> Result<T, Error>

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> IntoClones<(T,)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T, T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> IntoClones<(T, T, T, T, T, T, T, T, T, T, T)> for T
where T: Clone,

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
source§

impl<T> DecodeOwned for T
where T: for<'de> Decode<'de>,

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,