-
I am new to rust and I do not know how to use these 2 functions, can anyone help me? |
Beta Was this translation helpful? Give feedback.
Answered by
khassar00
Feb 13, 2023
Replies: 2 comments 1 reply
-
@khassar00 hello! Welcome to SeaQL and Rust communities! #[derive(Debug, Ident)]
pub enum Font {
Table,
Id,
Name,
Variant,
Language,
}
// With enumaration
ColumnDef::new(Font::Id).enumeration(Alias::new("TestEnum"), [Alias::new("1"), Alias::new("2")]));
// With custom
ColumnDef::new(Font::Id).custom("Money"); |
Beta Was this translation helpful? Give feedback.
1 reply
-
I don't need to use either of these functions at all to handle enum correctly.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
khassar00
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't need to use either of these functions at all to handle enum correctly.