@@ -162,8 +162,8 @@ impl ForeignKeyConstraint {
162
162
163
163
#[ derive( Debug , Eq , PartialEq , Copy , Clone ) ]
164
164
pub enum SupportedColumnStructures {
165
- VIEW ,
166
- TABLE ,
165
+ View ,
166
+ Table ,
167
167
}
168
168
169
169
#[ derive( Debug ) ]
@@ -198,8 +198,8 @@ impl ColumnData {
198
198
impl Display for SupportedColumnStructures {
199
199
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
200
200
let format = match self {
201
- Self :: TABLE => "BASE TABLE" ,
202
- Self :: VIEW => "VIEW" ,
201
+ Self :: Table => "BASE TABLE" ,
202
+ Self :: View => "VIEW" ,
203
203
} ;
204
204
write ! ( f, "{format}" )
205
205
}
@@ -209,8 +209,8 @@ impl FromStr for SupportedColumnStructures {
209
209
type Err = ( ) ;
210
210
fn from_str ( s : & str ) -> Result < Self , Self :: Err > {
211
211
match s {
212
- "BASE TABLE" => Ok ( Self :: TABLE ) ,
213
- "VIEW" => Ok ( Self :: VIEW ) ,
212
+ "BASE TABLE" => Ok ( Self :: Table ) ,
213
+ "VIEW" => Ok ( Self :: View ) ,
214
214
_ => unreachable ! ( "This should never happen. Read {s}" ) ,
215
215
}
216
216
}
@@ -224,6 +224,6 @@ impl SupportedColumnStructures {
224
224
. collect ( )
225
225
}
226
226
pub fn all ( ) -> Vec < SupportedColumnStructures > {
227
- vec ! [ Self :: VIEW , Self :: TABLE ]
227
+ vec ! [ Self :: View , Self :: Table ]
228
228
}
229
229
}
0 commit comments