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: String) -> Self
pub fn is_nullable(self, is_nullable: bool) -> Self
pub fn path(self, path: 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