pub struct RulesClient { /* private fields */ }Implementations§
Source§impl RulesClient
impl RulesClient
pub fn new(api_client: WazuhApiClient) -> Self
pub async fn get_rules( &mut self, limit: Option<u32>, offset: Option<u32>, level: Option<u32>, group: Option<&str>, filename: Option<&str>, ) -> Result<Vec<Rule>, WazuhApiError>
pub async fn get_rule(&mut self, rule_id: u32) -> Result<Rule, WazuhApiError>
pub async fn get_rules_by_level( &mut self, level: u32, ) -> Result<Vec<Rule>, WazuhApiError>
pub async fn get_rules_by_group( &mut self, group: &str, ) -> Result<Vec<Rule>, WazuhApiError>
pub async fn get_high_level_rules(&mut self) -> Result<Vec<Rule>, WazuhApiError>
pub async fn get_rule_groups(&mut self) -> Result<Vec<String>, WazuhApiError>
pub async fn get_decoders( &mut self, limit: Option<u32>, offset: Option<u32>, filename: Option<&str>, ) -> Result<Vec<Decoder>, WazuhApiError>
pub async fn get_decoder( &mut self, decoder_name: &str, ) -> Result<Decoder, WazuhApiError>
pub async fn search_rules( &mut self, search_term: &str, ) -> Result<Vec<Rule>, WazuhApiError>
Trait Implementations§
Source§impl Clone for RulesClient
impl Clone for RulesClient
Source§fn clone(&self) -> RulesClient
fn clone(&self) -> RulesClient
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 moreAuto Trait Implementations§
impl Freeze for RulesClient
impl !RefUnwindSafe for RulesClient
impl Send for RulesClient
impl Sync for RulesClient
impl Unpin for RulesClient
impl !UnwindSafe for RulesClient
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