pub struct EventServiceAsyncClient<T>(/* private fields */);
Expand description
An Event is an annotated moment or time range. The Event Service is responsible for creating and retrieving events for a particular data source.
Implementations§
Source§impl<T> EventServiceAsyncClient<T>where
T: AsyncClient,
impl<T> EventServiceAsyncClient<T>where
T: AsyncClient,
Sourcepub async fn create_event(
&self,
auth_: &BearerToken,
request: &CreateEvent,
) -> Result<Event, Error>
pub async fn create_event( &self, auth_: &BearerToken, request: &CreateEvent, ) -> Result<Event, Error>
Creates an event.
Sourcepub async fn get_events(
&self,
auth_: &BearerToken,
request: &GetEvents,
) -> Result<BTreeSet<Event>, Error>
pub async fn get_events( &self, auth_: &BearerToken, request: &GetEvents, ) -> Result<BTreeSet<Event>, Error>
Gets a set of events by UUIDs
Sourcepub async fn update_event(
&self,
auth_: &BearerToken,
request: &UpdateEvent,
) -> Result<Event, Error>
pub async fn update_event( &self, auth_: &BearerToken, request: &UpdateEvent, ) -> Result<Event, Error>
Updates the fields of an event. Empty fields are left unchanged
Sourcepub async fn archive_event(
&self,
auth_: &BearerToken,
request: &ArchiveEvent,
) -> Result<(), Error>
pub async fn archive_event( &self, auth_: &BearerToken, request: &ArchiveEvent, ) -> Result<(), Error>
Archives an event
Sourcepub async fn search_events(
&self,
auth_: &BearerToken,
request: &SearchEventsRequest,
) -> Result<SearchEventsResponse, Error>
pub async fn search_events( &self, auth_: &BearerToken, request: &SearchEventsRequest, ) -> Result<SearchEventsResponse, Error>
Searches for events that match the given filters.
Trait Implementations§
Source§impl<T> AsyncService<T> for EventServiceAsyncClient<T>where
T: AsyncClient,
impl<T> AsyncService<T> for EventServiceAsyncClient<T>where
T: AsyncClient,
Source§impl<T: Clone> Clone for EventServiceAsyncClient<T>
impl<T: Clone> Clone for EventServiceAsyncClient<T>
Source§fn clone(&self) -> EventServiceAsyncClient<T>
fn clone(&self) -> EventServiceAsyncClient<T>
Returns a copy 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<T> Freeze for EventServiceAsyncClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for EventServiceAsyncClient<T>where
T: RefUnwindSafe,
impl<T> Send for EventServiceAsyncClient<T>where
T: Send,
impl<T> Sync for EventServiceAsyncClient<T>where
T: Sync,
impl<T> Unpin for EventServiceAsyncClient<T>where
T: Unpin,
impl<T> UnwindSafe for EventServiceAsyncClient<T>where
T: UnwindSafe,
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