route_verification_shared_struct 0.2.2

Parse RPSL in the IRR to verify observed BGP routes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::collections::BTreeMap;

use crate::community::Call;

use super::*;

pub type Actions = BTreeMap<String, Action>;

#[derive(Clone, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
#[serde(untagged)]
pub enum Action {
    Assigned(String),
    AssignedSet(Vec<String>),
    MethodCall(Vec<Call>),
}