pub struct SecurityControl {
pub id: String,
pub name: String,
pub description: String,
pub component: String,
pub enabled: bool,
pub configuration: Option<String>,
}Expand description
A security control provided by OxideShield.
Fields§
§id: StringControl identifier.
name: StringControl name.
description: StringDescription of what the control does.
component: StringOxideShield component providing this control.
enabled: boolWhether this control is currently enabled.
configuration: Option<String>Configuration details.
Implementations§
Source§impl SecurityControl
impl SecurityControl
Sourcepub fn new(
id: impl Into<String>,
name: impl Into<String>,
component: impl Into<String>,
) -> Self
pub fn new( id: impl Into<String>, name: impl Into<String>, component: impl Into<String>, ) -> Self
Create a new security control.
Sourcepub fn with_description(self, desc: impl Into<String>) -> Self
pub fn with_description(self, desc: impl Into<String>) -> Self
Set the description.
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Set enabled status.
Sourcepub fn with_configuration(self, config: impl Into<String>) -> Self
pub fn with_configuration(self, config: impl Into<String>) -> Self
Set configuration details.
Trait Implementations§
Source§impl Clone for SecurityControl
impl Clone for SecurityControl
Source§fn clone(&self) -> SecurityControl
fn clone(&self) -> SecurityControl
Returns a duplicate of the value. Read more
1.0.0 · 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 SecurityControl
impl Debug for SecurityControl
Source§impl<'de> Deserialize<'de> for SecurityControl
impl<'de> Deserialize<'de> for SecurityControl
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 SecurityControl
impl RefUnwindSafe for SecurityControl
impl Send for SecurityControl
impl Sync for SecurityControl
impl Unpin for SecurityControl
impl UnwindSafe for SecurityControl
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