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>>
§encryption: Option<IndexMap<String, Encryption>>
§comment: Option<Vec<Comment>>
Implementations§
Source§impl Model
impl Model
pub fn application_by_id<'a>(&'a self, id: &str) -> Option<&'a Application>
pub fn network_by_id<'a>(&'a self, id: &str) -> Option<&'a Network>
pub fn endpoint_by_id<'a>(&'a self, id: &str) -> Option<&'a Endpoint>
pub fn server_by_id<'a>(&'a self, id: &str) -> Option<&'a Server>
pub fn actor_by_id<'a>(&'a self, id: &str) -> Option<&'a Actor>
pub fn flow_by_id<'a>(&'a self, id: &str) -> Option<&'a Flow>
pub fn agent_by_id<'a>(&'a self, id: &str) -> Option<&'a Agent>
pub fn store_by_id<'a>(&'a self, id: &str) -> Option<&'a Store>
pub fn risk_by_id<'a>(&'a self, id: &str) -> Option<&'a Risk>
pub fn data_by_id<'a>(&'a self, id: &str) -> Option<&'a Data>
pub fn channel_by_id<'a>(&'a self, id: &str) -> Option<&'a Channel>
pub fn authentication_by_id<'a>( &'a self, id: &str, ) -> Option<&'a Authentication>
pub fn encryption_by_id<'a>(&'a self, id: &str) -> Option<&'a Encryption>
pub fn process_by_id<'a>(&'a self, id: &str) -> Option<&'a Process>
pub fn protocol_by_id<'a>(&'a self, id: &str) -> Option<&'a Protocol>
pub fn regulation_by_id<'a>(&'a self, id: &str) -> Option<&'a Regulation>
pub fn control_by_id<'a>(&'a self, id: &str) -> Option<&'a Control>
pub fn classification_by_id<'a>( &'a self, id: &str, ) -> Option<&'a Classification>
pub fn entity_by_id<'a>(&'a self, id: &str) -> Option<Box<&dyn Entity>>
pub fn network_servers<'a>(&self, network_id: &str) -> Vec<String>
pub fn network_connected_servers<'a>(&self, network_id: &str) -> Vec<String>
pub fn network_endpoints<'a>(&self, network_id: &str) -> Vec<String>
pub fn network_connected_endpoints<'a>(&self, network_id: &str) -> Vec<String>
pub fn data_stores(&self, data_id: &str) -> Vec<String>
pub fn entity_comments<'a>(&self, entity_id: &str) -> Vec<&Comment>
pub fn entity_flows(&self, entity_id: &str) -> Vec<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more