pub struct TaskDefinition { /* private fields */ }Implementations§
Source§impl TaskDefinition
impl TaskDefinition
pub fn new( data: SiemTaskData, name: LogString, description: LogString, min_permission: UserRole, fire_mode: TaskFireMode, max_duration: u64, builder: TaskBuilder, ) -> TaskDefinition
pub fn data(&self) -> &SiemTaskData
pub fn name(&self) -> &str
pub fn description(&self) -> &str
pub fn min_permission(&self) -> &UserRole
pub fn fire_mode(&self) -> &TaskFireMode
pub fn max_duration(&self) -> u64
pub fn builder(&self) -> TaskBuilder
Trait Implementations§
Source§impl Clone for TaskDefinition
impl Clone for TaskDefinition
Source§impl Debug for TaskDefinition
impl Debug for TaskDefinition
Source§impl<'de> Deserialize<'de> for TaskDefinition
impl<'de> Deserialize<'de> for TaskDefinition
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 TaskDefinition
impl RefUnwindSafe for TaskDefinition
impl Send for TaskDefinition
impl Sync for TaskDefinition
impl Unpin for TaskDefinition
impl UnwindSafe for TaskDefinition
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