From 65542301da5ec2d07d320f64e52c67de27ac5f17 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Tue, 2 Nov 2021 14:25:18 +0800 Subject: [PATCH] Add docs --- src/entity/column.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/entity/column.rs b/src/entity/column.rs index cc93bde4..865eccae 100644 --- a/src/entity/column.rs +++ b/src/entity/column.rs @@ -62,6 +62,7 @@ pub enum ColumnType { Custom(String), /// A Universally Unique IDentifier that is specified in RFC 4122 Uuid, + /// `ENUM` data type with name and variants Enum(String, Vec), } @@ -315,6 +316,7 @@ impl ColumnDef { self } + /// Get [ColumnType] as reference pub fn get_column_type(&self) -> &ColumnType { &self.col_type }