Struct sdl_parser::Scenario 
source · pub struct Scenario {
    pub name: String,
    pub description: Option<String>,
    pub start: DateTime<Utc>,
    pub end: DateTime<Utc>,
    pub nodes: Option<Nodes>,
    pub features: Option<Features>,
    pub infrastructure: Option<Infrastructure>,
    pub conditions: Option<Conditions>,
    pub vulnerabilities: Option<Vulnerabilities>,
    pub capabilities: Option<Capabilities>,
    /* private fields */
}Fields§
§name: String§description: Option<String>§start: DateTime<Utc>§end: DateTime<Utc>§nodes: Option<Nodes>§features: Option<Features>§infrastructure: Option<Infrastructure>§conditions: Option<Conditions>§vulnerabilities: Option<Vulnerabilities>§capabilities: Option<Capabilities>Implementations§
source§impl Scenario
 
impl Scenario
pub fn get_node_dependencies(&self) -> Result<Dependencies>
pub fn get_feature_dependencies(&self) -> Result<Dependencies>
pub fn verify_node_name_length(&self) -> Result<()>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Scenario
 
impl<'de> Deserialize<'de> for Scenario
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Scenario> for Scenario
 
impl PartialEq<Scenario> for Scenario
impl Eq for Scenario
impl StructuralEq for Scenario
impl StructuralPartialEq for Scenario
Auto Trait Implementations§
impl RefUnwindSafe for Scenario
impl Send for Scenario
impl Sync for Scenario
impl Unpin for Scenario
impl UnwindSafe for Scenario
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.