Compare commits
2 Commits
912f6c2101
...
2e7c461b66
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e7c461b66 | |||
| 158cd72202 |
@@ -1446,6 +1446,7 @@ pub struct CommentOnExpr {
|
||||
pub enum Analyzer {
|
||||
English = 0,
|
||||
Chinese = 1,
|
||||
Russian = 2,
|
||||
}
|
||||
impl Analyzer {
|
||||
/// String value of the enum field names used in the ProtoBuf definition.
|
||||
@@ -1456,6 +1457,7 @@ impl Analyzer {
|
||||
match self {
|
||||
Self::English => "ENGLISH",
|
||||
Self::Chinese => "CHINESE",
|
||||
Self::Russian => "RUSSIAN",
|
||||
}
|
||||
}
|
||||
/// Creates an enum from field names used in the ProtoBuf definition.
|
||||
@@ -1463,6 +1465,7 @@ impl Analyzer {
|
||||
match value {
|
||||
"ENGLISH" => Some(Self::English),
|
||||
"CHINESE" => Some(Self::Chinese),
|
||||
"RUSSIAN" => Some(Self::Russian),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user