pub struct ActorVersionCollectionClient { /* private fields */ }Expand description
Client for listing and creating Actor versions.
Implementations§
Source§impl ActorVersionCollectionClient
impl ActorVersionCollectionClient
Sourcepub async fn list(&self) -> ApifyClientResult<PaginationList<ActorVersion>>
pub async fn list(&self) -> ApifyClientResult<PaginationList<ActorVersion>>
Lists the Actor’s versions. The endpoint takes no query parameters and returns every version in a single page.
Sourcepub fn iterate(&self) -> ListIterator<ActorVersion>
pub fn iterate(&self) -> ListIterator<ActorVersion>
Lazily iterates over the Actor’s versions.
The listing is not offset-paginated (the API returns every version in a single page), so this yields all of them from that one page and then completes. It exists for interface parity with the other collection clients and the reference client.
Sourcepub async fn create<T: Serialize>(
&self,
version: &T,
) -> ApifyClientResult<ActorVersion>
pub async fn create<T: Serialize>( &self, version: &T, ) -> ApifyClientResult<ActorVersion>
Creates a new Actor version.
Trait Implementations§
Source§impl Clone for ActorVersionCollectionClient
impl Clone for ActorVersionCollectionClient
Auto Trait Implementations§
impl !RefUnwindSafe for ActorVersionCollectionClient
impl !UnwindSafe for ActorVersionCollectionClient
impl Freeze for ActorVersionCollectionClient
impl Send for ActorVersionCollectionClient
impl Sync for ActorVersionCollectionClient
impl Unpin for ActorVersionCollectionClient
impl UnsafeUnpin for ActorVersionCollectionClient
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