Enum sea_schema::mysql::def::Type
source ยท pub enum Type {
Show 42 variants
Serial,
Bit(NumericAttr),
TinyInt(NumericAttr),
Bool,
SmallInt(NumericAttr),
MediumInt(NumericAttr),
Int(NumericAttr),
BigInt(NumericAttr),
Decimal(NumericAttr),
Float(NumericAttr),
Double(NumericAttr),
Date,
Time(TimeAttr),
DateTime(TimeAttr),
Timestamp(TimeAttr),
Year,
Char(StringAttr),
NChar(StringAttr),
Varchar(StringAttr),
NVarchar(StringAttr),
Binary(StringAttr),
Varbinary(StringAttr),
Text(StringAttr),
TinyText(StringAttr),
MediumText(StringAttr),
LongText(StringAttr),
Blob(BlobAttr),
TinyBlob,
MediumBlob,
LongBlob,
Enum(EnumDef),
Set(SetDef),
Geometry(GeometryAttr),
Point(GeometryAttr),
LineString(GeometryAttr),
Polygon(GeometryAttr),
MultiPoint(GeometryAttr),
MultiLineString(GeometryAttr),
MultiPolygon(GeometryAttr),
GeometryCollection(GeometryAttr),
Json,
Unknown(String),
}
Available on crate features
mysql
and def
only.Expand description
All built-in types of MySQL, excluding synonyms
Variantsยง
Serial
Bit(NumericAttr)
TinyInt(NumericAttr)
Bool
SmallInt(NumericAttr)
MediumInt(NumericAttr)
Int(NumericAttr)
BigInt(NumericAttr)
Decimal(NumericAttr)
Float(NumericAttr)
Double(NumericAttr)
Date
Time(TimeAttr)
DateTime(TimeAttr)
Timestamp(TimeAttr)
Year
Char(StringAttr)
NChar(StringAttr)
Varchar(StringAttr)
NVarchar(StringAttr)
Binary(StringAttr)
Varbinary(StringAttr)
Text(StringAttr)
TinyText(StringAttr)
MediumText(StringAttr)
LongText(StringAttr)
Blob(BlobAttr)
TinyBlob
MediumBlob
LongBlob
Enum(EnumDef)
Set(SetDef)
Geometry(GeometryAttr)
Point(GeometryAttr)
LineString(GeometryAttr)
Polygon(GeometryAttr)
MultiPoint(GeometryAttr)
MultiLineString(GeometryAttr)
MultiPolygon(GeometryAttr)
GeometryCollection(GeometryAttr)
Json
Unknown(String)
Implementationsยง
sourceยงimpl Type
impl Type
pub fn is_numeric(&self) -> bool
pub fn is_date(&self) -> bool
pub fn is_time(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_blob(&self) -> bool
pub fn is_free_size_blob(&self) -> bool
pub fn is_geometry(&self) -> bool
pub fn is_enum(&self) -> bool
pub fn is_set(&self) -> bool
pub fn is_other(&self) -> bool
pub fn is_unknown(&self) -> bool
pub fn get_numeric_attr_mut(&mut self) -> &mut NumericAttr
pub fn get_time_attr_mut(&mut self) -> &mut TimeAttr
pub fn get_string_attr_mut(&mut self) -> &mut StringAttr
pub fn get_blob_attr_mut(&mut self) -> &mut BlobAttr
pub fn get_enum_def_mut(&mut self) -> &mut EnumDef
pub fn get_set_def_mut(&mut self) -> &mut SetDef
pub fn get_geometry_attr_mut(&mut self) -> &mut GeometryAttr
sourceยงimpl Type
impl Type
pub fn write_numeric_attr(s: &mut dyn Write, num: &NumericAttr)
Available on crate feature
writer
only.pub fn write_time_attr(s: &mut dyn Write, attr: &TimeAttr)
Available on crate feature
writer
only.pub fn write_string_attr(s: &mut dyn Write, attr: &StringAttr)
Available on crate feature
writer
only.pub fn write_blob_attr(s: &mut dyn Write, attr: &BlobAttr)
Available on crate feature
writer
only.pub fn write_enum_def(s: &mut dyn Write, def: &EnumDef)
Available on crate feature
writer
only.pub fn write_set_def(s: &mut dyn Write, def: &SetDef)
Available on crate feature
writer
only.pub fn write_geometry_attr(s: &mut dyn Write, attr: &GeometryAttr)
Available on crate feature
writer
only.Trait Implementationsยง
impl StructuralPartialEq for Type
Auto Trait Implementationsยง
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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
)