Struct usiem::components::command::CommandDefinition
source · pub struct CommandDefinition { /* private fields */ }
Implementations
sourceimpl CommandDefinition
impl CommandDefinition
pub fn new(
class: SiemFunctionType,
name: Cow<'static, str>,
description: Cow<'static, str>,
min_permission: UserRole
) -> CommandDefinition
pub fn class(&self) -> &SiemFunctionType
pub fn name(&self) -> &Cow<'static, str>
pub fn description(&self) -> &Cow<'static, str>
pub fn min_permission(&self) -> &UserRole
Trait Implementations
sourceimpl Clone for CommandDefinition
impl Clone for CommandDefinition
sourcefn clone(&self) -> CommandDefinition
fn clone(&self) -> CommandDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CommandDefinition
impl Debug for CommandDefinition
sourceimpl Serialize for CommandDefinition
impl Serialize for CommandDefinition
Auto Trait Implementations
impl RefUnwindSafe for CommandDefinition
impl Send for CommandDefinition
impl Sync for CommandDefinition
impl Unpin for CommandDefinition
impl UnwindSafe for CommandDefinition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more