Struct Model

Source
pub struct Model {
Show 23 fields pub title: Option<String>, pub actor: Option<IndexMap<String, Actor>>, pub agent: Option<IndexMap<String, Agent>>, pub application: Option<IndexMap<String, Application>>, pub channel: Option<IndexMap<String, Channel>>, pub data: Option<IndexMap<String, Data>>, pub flow: Option<IndexMap<String, Flow>>, pub store: Option<IndexMap<String, Store>>, pub network: Option<IndexMap<String, Network>>, pub server: Option<IndexMap<String, Server>>, pub endpoint: Option<IndexMap<String, Endpoint>>, pub process: Option<IndexMap<String, Process>>, pub protocol: Option<IndexMap<String, Protocol>>, pub deployment: Option<IndexMap<String, Deployment>>, pub control: Option<IndexMap<String, Control>>, pub classification: Option<IndexMap<String, Classification>>, pub risk: Option<IndexMap<String, Risk>>, pub threat: Option<IndexMap<String, Threat>>, pub regulation: Option<IndexMap<String, Regulation>>, pub authentication: Option<IndexMap<String, Authentication>>, pub authorization: Option<IndexMap<String, Authorization>>, pub encryption: Option<IndexMap<String, Encryption>>, pub comment: Option<Vec<Comment>>,
}

Fields§

§title: Option<String>§actor: Option<IndexMap<String, Actor>>§agent: Option<IndexMap<String, Agent>>§application: Option<IndexMap<String, Application>>§channel: Option<IndexMap<String, Channel>>§data: Option<IndexMap<String, Data>>§flow: Option<IndexMap<String, Flow>>§store: Option<IndexMap<String, Store>>§network: Option<IndexMap<String, Network>>§server: Option<IndexMap<String, Server>>§endpoint: Option<IndexMap<String, Endpoint>>§process: Option<IndexMap<String, Process>>§protocol: Option<IndexMap<String, Protocol>>§deployment: Option<IndexMap<String, Deployment>>§control: Option<IndexMap<String, Control>>§classification: Option<IndexMap<String, Classification>>§risk: Option<IndexMap<String, Risk>>§threat: Option<IndexMap<String, Threat>>§regulation: Option<IndexMap<String, Regulation>>§authentication: Option<IndexMap<String, Authentication>>§authorization: Option<IndexMap<String, Authorization>>§encryption: Option<IndexMap<String, Encryption>>§comment: Option<Vec<Comment>>

Implementations§

Source§

impl Model

Source

pub fn application_by_id<'a>(&'a self, id: &str) -> Option<&'a Application>

Source

pub fn network_by_id<'a>(&'a self, id: &str) -> Option<&'a Network>

Source

pub fn endpoint_by_id<'a>(&'a self, id: &str) -> Option<&'a Endpoint>

Source

pub fn server_by_id<'a>(&'a self, id: &str) -> Option<&'a Server>

Source

pub fn actor_by_id<'a>(&'a self, id: &str) -> Option<&'a Actor>

Source

pub fn flow_by_id<'a>(&'a self, id: &str) -> Option<&'a Flow>

Source

pub fn agent_by_id<'a>(&'a self, id: &str) -> Option<&'a Agent>

Source

pub fn store_by_id<'a>(&'a self, id: &str) -> Option<&'a Store>

Source

pub fn risk_by_id<'a>(&'a self, id: &str) -> Option<&'a Risk>

Source

pub fn data_by_id<'a>(&'a self, id: &str) -> Option<&'a Data>

Source

pub fn channel_by_id<'a>(&'a self, id: &str) -> Option<&'a Channel>

Source

pub fn authentication_by_id<'a>( &'a self, id: &str, ) -> Option<&'a Authentication>

Source

pub fn authorization_by_id<'a>(&'a self, id: &str) -> Option<&'a Authorization>

Source

pub fn encryption_by_id<'a>(&'a self, id: &str) -> Option<&'a Encryption>

Source

pub fn process_by_id<'a>(&'a self, id: &str) -> Option<&'a Process>

Source

pub fn protocol_by_id<'a>(&'a self, id: &str) -> Option<&'a Protocol>

Source

pub fn regulation_by_id<'a>(&'a self, id: &str) -> Option<&'a Regulation>

Source

pub fn control_by_id<'a>(&'a self, id: &str) -> Option<&'a Control>

Source

pub fn classification_by_id<'a>( &'a self, id: &str, ) -> Option<&'a Classification>

Source

pub fn entity_by_id<'a>(&'a self, id: &str) -> Option<Box<&dyn Entity>>

Source

pub fn network_servers<'a>(&self, network_id: &str) -> Vec<String>

Source

pub fn network_connected_servers<'a>(&self, network_id: &str) -> Vec<String>

Source

pub fn network_endpoints<'a>(&self, network_id: &str) -> Vec<String>

Source

pub fn network_connected_endpoints<'a>(&self, network_id: &str) -> Vec<String>

Source

pub fn data_stores(&self, data_id: &str) -> Vec<String>

Source

pub fn entity_comments<'a>(&self, entity_id: &str) -> Vec<&Comment>

Source

pub fn entity_flows(&self, entity_id: &str) -> Vec<String>

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for Model

Source§

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 Serialize for Model

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Model

§

impl RefUnwindSafe for Model

§

impl Send for Model

§

impl Sync for Model

§

impl Unpin for Model

§

impl UnwindSafe for Model

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,