MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / new

Method new

crates/openshell-ocsf/src/objects/firewall_rule.rs:25–30  ·  view source on GitHub ↗
(name: &str, rule_type: &str)

Source from the content-addressed store, hash-verified

23 /// Create a new firewall rule.
24 #[must_use]
25 pub fn new(name: &str, rule_type: &str) -> Self {
26 Self {
27 name: name.to_string(),
28 rule_type: rule_type.to_string(),
29 }
30 }
31}
32
33#[cfg(test)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected