pub struct SecurityRuleMetadata { /* private fields */ }Expand description
Metadata describing the security rule associated with a crate::Policy.
These fields follow the OpenTelemetry semantic conventions for security rules: https://opentelemetry.io/docs/specs/semconv/registry/attributes/security-rule/.
Implementations§
Source§impl SecurityRuleMetadata
impl SecurityRuleMetadata
Sourcepub fn with_category(self, category: impl Into<String>) -> Self
pub fn with_category(self, category: impl Into<String>) -> Self
Sets the security_rule.category attribute.
Sourcepub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
Sets the security_rule.description attribute.
Sourcepub fn with_reference(self, reference: impl Into<String>) -> Self
pub fn with_reference(self, reference: impl Into<String>) -> Self
Sets the security_rule.reference attribute.
Sourcepub fn with_ruleset_name(self, ruleset_name: impl Into<String>) -> Self
pub fn with_ruleset_name(self, ruleset_name: impl Into<String>) -> Self
Sets the security_rule.ruleset.name attribute.
Sourcepub fn with_version(self, version: impl Into<String>) -> Self
pub fn with_version(self, version: impl Into<String>) -> Self
Sets the security_rule.version attribute.
Sourcepub fn with_license(self, license: impl Into<String>) -> Self
pub fn with_license(self, license: impl Into<String>) -> Self
Sets the security_rule.license attribute.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Returns the configured security_rule.description value.
Sourcepub fn ruleset_name(&self) -> Option<&str>
pub fn ruleset_name(&self) -> Option<&str>
Returns the configured security_rule.ruleset.name value.
Trait Implementations§
Source§impl Clone for SecurityRuleMetadata
impl Clone for SecurityRuleMetadata
Source§fn clone(&self) -> SecurityRuleMetadata
fn clone(&self) -> SecurityRuleMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecurityRuleMetadata
impl Debug for SecurityRuleMetadata
Source§impl Default for SecurityRuleMetadata
impl Default for SecurityRuleMetadata
Source§fn default() -> SecurityRuleMetadata
fn default() -> SecurityRuleMetadata
Returns the “default value” for a type. Read more
impl Eq for SecurityRuleMetadata
Source§impl PartialEq for SecurityRuleMetadata
impl PartialEq for SecurityRuleMetadata
impl StructuralPartialEq for SecurityRuleMetadata
Auto Trait Implementations§
impl Freeze for SecurityRuleMetadata
impl RefUnwindSafe for SecurityRuleMetadata
impl Send for SecurityRuleMetadata
impl Sync for SecurityRuleMetadata
impl Unpin for SecurityRuleMetadata
impl UnsafeUnpin for SecurityRuleMetadata
impl UnwindSafe for SecurityRuleMetadata
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