Refactor: Fully migrated parser to full prost crate, auto-fmt; Fix: Remove no more needed tests
This commit is contained in:
parent
c1bf670152
commit
0d81bae32a
8 changed files with 75 additions and 96 deletions
|
|
@ -8,9 +8,10 @@ use std::net::IpAddr;
|
|||
// TODO: V2Ray protobuf parsing && Test 4 ts
|
||||
|
||||
/// Interface enum for `dst_addr` info
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub enum RouteType {
|
||||
/// GeoSite MMDB type, like `category-ads-all`
|
||||
/// GeoSite type, like `category-ads-all`
|
||||
GeoSite(String),
|
||||
/// Result with GeoCode like "RU"
|
||||
GeoIp(String),
|
||||
|
|
@ -18,6 +19,7 @@ pub enum RouteType {
|
|||
}
|
||||
|
||||
/// Routing actions
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub enum RouteAction {
|
||||
#[serde(alias = "block")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue