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
impl Part
pub fn field(field: impl Into<NumOrStr>) -> Self
pub fn field_type(self, type: FieldType) -> Self
pub fn collation(self, collation: impl Into<String>) -> Self
pub fn is_nullable(self, is_nullable: bool) -> Self
pub fn path(self, path: impl Into<String>) -> Self
pub fn new(fi: impl Into<NumOrStr>, ft: FieldType) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Part
impl<'de> Deserialize<'de> for Part
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
source§impl<__AsLuaTypeParam> LuaRead<__AsLuaTypeParam> for Partwhere
__AsLuaTypeParam: AsLua,
impl<__AsLuaTypeParam> LuaRead<__AsLuaTypeParam> for Partwhere
__AsLuaTypeParam: AsLua,
fn n_values_expected() -> i32
source§fn lua_read_at_position(
__lua: __AsLuaTypeParam,
__index: NonZeroI32,
) -> ReadResult<Self, __AsLuaTypeParam>
fn lua_read_at_position( __lua: __AsLuaTypeParam, __index: NonZeroI32, ) -> ReadResult<Self, __AsLuaTypeParam>
Reads the data from Lua at a given position.
fn lua_read_at_maybe_zero_position( __lua: __AsLuaTypeParam, __index: i32, ) -> ReadResult<Self, __AsLuaTypeParam>
source§impl<__AsLuaTypeParam> Push<__AsLuaTypeParam> for Partwhere
__AsLuaTypeParam: AsLua,
impl<__AsLuaTypeParam> Push<__AsLuaTypeParam> for Partwhere
__AsLuaTypeParam: AsLua,
impl Eq for Part
impl<__AsLuaTypeParam> PushOne<__AsLuaTypeParam> for Partwhere
__AsLuaTypeParam: AsLua,
impl StructuralPartialEq for Part
Auto Trait Implementations§
impl Freeze for Part
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> 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)