pub struct EventsApi<'a> { /* private fields */ }Implementations§
Source§impl<'a> EventsApi<'a>
impl<'a> EventsApi<'a>
Sourcepub async fn list_events(
&self,
params: ListEventsParams,
) -> Result<EventList, Error>
pub async fn list_events( &self, params: ListEventsParams, ) -> Result<EventList, Error>
List events
List events for the current environment.
Sourcepub async fn list_events_with_options(
&self,
params: ListEventsParams,
options: Option<&RequestOptions>,
) -> Result<EventList, Error>
pub async fn list_events_with_options( &self, params: ListEventsParams, options: Option<&RequestOptions>, ) -> Result<EventList, Error>
Variant of Self::list_events that accepts per-request crate::RequestOptions.
Sourcepub fn list_events_auto_paging(
&self,
params: ListEventsParams,
) -> impl Stream<Item = Result<EventSchema, Error>> + '_
pub fn list_events_auto_paging( &self, params: ListEventsParams, ) -> impl Stream<Item = Result<EventSchema, Error>> + '_
Returns an async futures_util::Stream that yields every EventSchema
across all pages, advancing the after cursor under the hood.
ⓘ
use futures_util::TryStreamExt;
let all: Vec<EventSchema> = self
.list_events_auto_paging(params)
.try_collect()
.await?;Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EventsApi<'a>
impl<'a> !UnwindSafe for EventsApi<'a>
impl<'a> Freeze for EventsApi<'a>
impl<'a> Send for EventsApi<'a>
impl<'a> Sync for EventsApi<'a>
impl<'a> Unpin for EventsApi<'a>
impl<'a> UnsafeUnpin for EventsApi<'a>
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