pub struct SightingsClient { /* private fields */ }Implementations§
Source§impl SightingsClient
impl SightingsClient
pub fn new(client: MispClient) -> Self
pub async fn list_for_attribute( &self, attribute_id: &str, ) -> Result<Vec<Sighting>, MispError>
pub async fn list_for_event( &self, event_id: &str, ) -> Result<Vec<Sighting>, MispError>
pub async fn search( &self, query: SightingSearchQuery, ) -> Result<Vec<Sighting>, MispError>
pub async fn search_by_value( &self, value: &str, ) -> Result<Vec<Sighting>, MispError>
pub async fn count_for_value( &self, value: &str, ) -> Result<SightingCount, MispError>
pub async fn get_timeline( &self, value: &str, limit: Option<u32>, ) -> Result<Vec<SightingEntry>, MispError>
Trait Implementations§
Source§impl Clone for SightingsClient
impl Clone for SightingsClient
Source§fn clone(&self) -> SightingsClient
fn clone(&self) -> SightingsClient
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 SightingsClient
impl !RefUnwindSafe for SightingsClient
impl Send for SightingsClient
impl Sync for SightingsClient
impl Unpin for SightingsClient
impl !UnwindSafe for SightingsClient
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