#[non_exhaustive]pub enum SiemCommandResponse {
Show 19 variants
START_COMPONENT(CommandResult<String>),
STOP_COMPONENT(CommandResult<String>),
LOG_QUERY(QueryInfo, CommandResult<Vec<BTreeMap<String, SiemField>>>),
ISOLATE_IP(CommandResult<String>),
ISOLATE_ENDPOINT(CommandResult<String>),
FILTER_IP(CommandResult<String>),
FILTER_DOMAIN(CommandResult<String>),
FILTER_EMAIL_SENDER(CommandResult<String>),
LIST_USE_CASES(CommandResult<Vec<UseCaseDefinition>>),
GET_USE_CASE(CommandResult<UseCaseDefinition>),
LIST_RULES(CommandResult<Vec<RuleDefinition>>),
GET_RULE(CommandResult<RuleDefinition>),
LIST_DATASETS(CommandResult<Vec<DatasetDefinition>>),
LIST_TASKS(CommandResult<Vec<TaskDefinition>>),
LIST_PARSERS(CommandResult<Vec<ParserDefinition>>),
LOGIN_USER(CommandResult<LoggedOnUser>),
START_TASK(CommandResult<u64>),
GET_TASK_RESULT(CommandResult<SiemTaskResult>),
OTHER(LogString, CommandResult<BTreeMap<LogString, LogString>>),
}Expand description
The response of a command execution
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
START_COMPONENT(CommandResult<String>)
STOP_COMPONENT(CommandResult<String>)
LOG_QUERY(QueryInfo, CommandResult<Vec<BTreeMap<String, SiemField>>>)
Query created with an ID
ISOLATE_IP(CommandResult<String>)
ISOLATE_ENDPOINT(CommandResult<String>)
FILTER_IP(CommandResult<String>)
(IP, Comment)
FILTER_DOMAIN(CommandResult<String>)
(Domain, Comment)
FILTER_EMAIL_SENDER(CommandResult<String>)
(Email, Comment)
LIST_USE_CASES(CommandResult<Vec<UseCaseDefinition>>)
List of UseCases: (Name,Description)
GET_USE_CASE(CommandResult<UseCaseDefinition>)
LIST_RULES(CommandResult<Vec<RuleDefinition>>)
GET_RULE(CommandResult<RuleDefinition>)
LIST_DATASETS(CommandResult<Vec<DatasetDefinition>>)
LIST_TASKS(CommandResult<Vec<TaskDefinition>>)
LIST_PARSERS(CommandResult<Vec<ParserDefinition>>)
LOGIN_USER(CommandResult<LoggedOnUser>)
START_TASK(CommandResult<u64>)
GET_TASK_RESULT(CommandResult<SiemTaskResult>)
OTHER(LogString, CommandResult<BTreeMap<LogString, LogString>>)
Trait Implementations§
Source§impl Clone for SiemCommandResponse
impl Clone for SiemCommandResponse
Source§fn clone(&self) -> SiemCommandResponse
fn clone(&self) -> SiemCommandResponse
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 SiemCommandResponse
impl Debug for SiemCommandResponse
Source§impl<'de> Deserialize<'de> for SiemCommandResponse
impl<'de> Deserialize<'de> for SiemCommandResponse
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
Source§impl From<SiemCommandResponse> for SiemMessage
impl From<SiemCommandResponse> for SiemMessage
Source§fn from(c: SiemCommandResponse) -> Self
fn from(c: SiemCommandResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SiemCommandResponse
impl RefUnwindSafe for SiemCommandResponse
impl Send for SiemCommandResponse
impl Sync for SiemCommandResponse
impl Unpin for SiemCommandResponse
impl UnwindSafe for SiemCommandResponse
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