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 PartialEq for Part
impl PartialEq for Part
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 StructuralEq for Part
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> 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