pub struct WarninglistsClient { /* private fields */ }Implementations§
Source§impl WarninglistsClient
impl WarninglistsClient
pub fn new(client: MispClient) -> Self
pub async fn list(&self) -> Result<Vec<Warninglist>, MispError>
pub async fn list_enabled(&self) -> Result<Vec<Warninglist>, MispError>
pub async fn get(&self, id: &str) -> Result<Warninglist, MispError>
pub async fn check_value( &self, value: &str, ) -> Result<WarninglistCheckResult, MispError>
pub async fn check_values( &self, values: &[&str], ) -> Result<Vec<WarninglistCheckResult>, MispError>
pub async fn is_whitelisted(&self, value: &str) -> Result<bool, MispError>
pub async fn get_matching_lists( &self, value: &str, ) -> Result<Vec<WarninglistMatch>, MispError>
Trait Implementations§
Source§impl Clone for WarninglistsClient
impl Clone for WarninglistsClient
Source§fn clone(&self) -> WarninglistsClient
fn clone(&self) -> WarninglistsClient
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 WarninglistsClient
impl !RefUnwindSafe for WarninglistsClient
impl Send for WarninglistsClient
impl Sync for WarninglistsClient
impl Unpin for WarninglistsClient
impl !UnwindSafe for WarninglistsClient
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