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