mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 14:47:13 -04:00
17 lines
337 B
Rust
17 lines
337 B
Rust
pub enum TypeCategory {
|
|
Array,
|
|
Map,
|
|
Str,
|
|
Protobuf,
|
|
Bytes,
|
|
Enum,
|
|
Opt,
|
|
Primitive,
|
|
}
|
|
|
|
fn category_from_str(type_str: &str) -> TypeCategory { TypeCategory::Protobuf }
|
|
|
|
pub fn ident_category(ident: &syn::Ident) -> TypeCategory {
|
|
let ident_str: &str = &ident.to_string();
|
|
category_from_str(ident_str)
|
|
}
|