pub struct FeedApi { /* private fields */ }Expand description
Activity feed and real-time event streaming
Implementations§
Source§impl FeedApi
impl FeedApi
Sourcepub async fn get_activity_feed(
&self,
params: &GetActivityFeedParams,
) -> Result<GetActivityFeedResponse>
pub async fn get_activity_feed( &self, params: &GetActivityFeedParams, ) -> Result<GetActivityFeedResponse>
Activity feed
GET /api/v1/feed
Required scopes: runs:read.
Sourcepub fn get_activity_feed_all<'a>(
&'a self,
params: &'a GetActivityFeedParams,
) -> impl Stream<Item = Result<FeedEntry>> + 'a
pub fn get_activity_feed_all<'a>( &'a self, params: &'a GetActivityFeedParams, ) -> impl Stream<Item = Result<FeedEntry>> + 'a
Stream every item returned by getActivityFeed, following the cursor cursor until the
server reports no further pages.
Sourcepub fn stream_activity_feed(
&self,
params: &StreamActivityFeedParams,
) -> EventStream
pub fn stream_activity_feed( &self, params: &StreamActivityFeedParams, ) -> EventStream
SSE activity feed stream
GET /api/v1/feed/stream
Required scopes: runs:read.
Returns a server-sent event stream.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FeedApi
impl !UnwindSafe for FeedApi
impl Freeze for FeedApi
impl Send for FeedApi
impl Sync for FeedApi
impl Unpin for FeedApi
impl UnsafeUnpin for FeedApi
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