pub struct Part<T = NumOrStr> {
pub field: T,
pub type: Option<FieldType>,
pub collation: Option<String>,
pub is_nullable: Option<bool>,
pub path: Option<String>,
}Expand description
Fields§
§field: T§type: Option<FieldType>§collation: Option<String>§is_nullable: Option<bool>§path: Option<String>Implementations§
Source§impl<T> Part<T>
impl<T> Part<T>
pub fn field(field: impl Into<T>) -> 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<T>, ft: FieldType) -> Self
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Part<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Part<T>where
T: Deserialize<'de>,
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<T, __AsLuaTypeParam> LuaRead<__AsLuaTypeParam> for Part<T>where
__AsLuaTypeParam: AsLua,
T: for<'as_lua_life_time_param> LuaRead<PushGuard<&'as_lua_life_time_param __AsLuaTypeParam>>,
impl<T, __AsLuaTypeParam> LuaRead<__AsLuaTypeParam> for Part<T>where
__AsLuaTypeParam: AsLua,
T: for<'as_lua_life_time_param> LuaRead<PushGuard<&'as_lua_life_time_param __AsLuaTypeParam>>,
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<T, __AsLuaTypeParam> Push<__AsLuaTypeParam> for Part<T>
impl<T, __AsLuaTypeParam> Push<__AsLuaTypeParam> for Part<T>
impl<T: Eq> Eq for Part<T>
impl<T, __AsLuaTypeParam> PushOne<__AsLuaTypeParam> for Part<T>
impl<T> StructuralPartialEq for Part<T>
Auto Trait Implementations§
impl<T> Freeze for Part<T>where
T: Freeze,
impl<T> RefUnwindSafe for Part<T>where
T: RefUnwindSafe,
impl<T> Send for Part<T>where
T: Send,
impl<T> Sync for Part<T>where
T: Sync,
impl<T> Unpin for Part<T>where
T: Unpin,
impl<T> UnwindSafe for Part<T>where
T: UnwindSafe,
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