pub struct ActorCollectionClient { /* private fields */ }Expand description
Client for listing and creating Actors.
Implementations§
Source§impl ActorCollectionClient
impl ActorCollectionClient
Sourcepub async fn list(
&self,
options: ActorListOptions,
) -> ApifyClientResult<PaginationList<Actor>>
pub async fn list( &self, options: ActorListOptions, ) -> ApifyClientResult<PaginationList<Actor>>
Lists the Actors in your account.
Use ActorListOptions::my to restrict the result to Actors you own.
Sourcepub fn iterate(&self, options: ActorListOptions) -> ListIterator<Actor>
pub fn iterate(&self, options: ActorListOptions) -> ListIterator<Actor>
Lazily iterates over all Actors matching options, fetching pages on demand.
Returns a ListIterator whose next() yields one Actor at a time, transparently
fetching subsequent pages until the listing is exhausted.
options.limit caps the total number of items yielded across all pages, unlike
list where limit is a single page’s size. Set the per-page fetch size
with with_chunk_size; see
ListIterator for details.
Trait Implementations§
Source§impl Clone for ActorCollectionClient
impl Clone for ActorCollectionClient
Source§fn clone(&self) -> ActorCollectionClient
fn clone(&self) -> ActorCollectionClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for ActorCollectionClient
impl !UnwindSafe for ActorCollectionClient
impl Freeze for ActorCollectionClient
impl Send for ActorCollectionClient
impl Sync for ActorCollectionClient
impl Unpin for ActorCollectionClient
impl UnsafeUnpin for ActorCollectionClient
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