Enum usiem::components::command::SiemCommandResponse
source · #[non_exhaustive]
pub enum SiemCommandResponse {
Show 17 variants
START_COMPONENT(Result<String, CommandError>),
STOP_COMPONENT(Result<String, CommandError>),
LOG_QUERY(QueryInfo, Result<Vec<BTreeMap<String, SiemField>>, CommandError>),
ISOLATE_IP(Result<String, CommandError>),
ISOLATE_ENDPOINT(Result<String, CommandError>),
FILTER_IP(Result<String, CommandError>),
FILTER_DOMAIN(Result<String, CommandError>),
FILTER_EMAIL_SENDER(Result<String, CommandError>),
LIST_USE_CASES(Result<Vec<UseCaseDefinition>, CommandError>),
GET_USE_CASE(Result<UseCaseDefinition, CommandError>),
LIST_RULES(Result<Vec<RuleDefinition>, CommandError>),
GET_RULE(Result<RuleDefinition, CommandError>),
LIST_DATASETS(Result<Vec<DatasetDefinition>, CommandError>),
LIST_TASKS(Result<Vec<TaskDefinition>, CommandError>),
LIST_PARSERS(Result<Vec<ParserDefinition>, CommandError>),
LOGIN_USER(Result<LoggedOnUser, CommandError>),
OTHER(Cow<'static, str>, Result<BTreeMap<Cow<'static, str>, Cow<'static, str>>, CommandError>),
}
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(Result<String, CommandError>)
STOP_COMPONENT(Result<String, CommandError>)
LOG_QUERY(QueryInfo, Result<Vec<BTreeMap<String, SiemField>>, CommandError>)
Query created with an ID
ISOLATE_IP(Result<String, CommandError>)
ISOLATE_ENDPOINT(Result<String, CommandError>)
FILTER_IP(Result<String, CommandError>)
(IP, Comment)
FILTER_DOMAIN(Result<String, CommandError>)
(Domain, Comment)
FILTER_EMAIL_SENDER(Result<String, CommandError>)
(Email, Comment)
LIST_USE_CASES(Result<Vec<UseCaseDefinition>, CommandError>)
List of UseCases: (Name,Description)
GET_USE_CASE(Result<UseCaseDefinition, CommandError>)
LIST_RULES(Result<Vec<RuleDefinition>, CommandError>)
GET_RULE(Result<RuleDefinition, CommandError>)
LIST_DATASETS(Result<Vec<DatasetDefinition>, CommandError>)
LIST_TASKS(Result<Vec<TaskDefinition>, CommandError>)
LIST_PARSERS(Result<Vec<ParserDefinition>, CommandError>)
LOGIN_USER(Result<LoggedOnUser, CommandError>)
OTHER(Cow<'static, str>, Result<BTreeMap<Cow<'static, str>, Cow<'static, str>>, CommandError>)
Trait Implementations
sourceimpl Clone for SiemCommandResponse
impl Clone for SiemCommandResponse
sourcefn clone(&self) -> SiemCommandResponse
fn clone(&self) -> SiemCommandResponse
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 SiemCommandResponse
impl Debug for SiemCommandResponse
sourceimpl Serialize for SiemCommandResponse
impl Serialize for SiemCommandResponse
Auto Trait Implementations
impl RefUnwindSafe for SiemCommandResponse
impl Send for SiemCommandResponse
impl Sync for SiemCommandResponse
impl Unpin for SiemCommandResponse
impl UnwindSafe for SiemCommandResponse
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