pub struct EventsClient { /* private fields */ }Implementations§
Source§impl EventsClient
impl EventsClient
pub fn new(client: MispClient) -> Self
pub async fn get(&self, id: &str) -> Result<Event, MispError>
pub async fn get_by_uuid(&self, uuid: &str) -> Result<Event, MispError>
pub async fn index( &self, params: Option<EventIndexParams>, ) -> Result<Vec<Event>, MispError>
pub async fn search( &self, query: EventSearchQuery, ) -> Result<Vec<Event>, MispError>
pub async fn get_attributes( &self, event_id: &str, ) -> Result<Vec<Attribute>, MispError>
pub async fn get_galaxies( &self, event_id: &str, ) -> Result<Vec<Galaxy>, MispError>
Trait Implementations§
Source§impl Clone for EventsClient
impl Clone for EventsClient
Source§fn clone(&self) -> EventsClient
fn clone(&self) -> EventsClient
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 EventsClient
impl !RefUnwindSafe for EventsClient
impl Send for EventsClient
impl Sync for EventsClient
impl Unpin for EventsClient
impl !UnwindSafe for EventsClient
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