pub struct ActorVersionClient { /* private fields */ }Expand description
Client for a specific Actor version.
Implementations§
Source§impl ActorVersionClient
impl ActorVersionClient
Sourcepub async fn get(&self) -> ApifyClientResult<Option<ActorVersion>>
pub async fn get(&self) -> ApifyClientResult<Option<ActorVersion>>
Fetches the version, or None if it does not exist.
Sourcepub async fn update<T: Serialize>(
&self,
new_fields: &T,
) -> ApifyClientResult<ActorVersion>
pub async fn update<T: Serialize>( &self, new_fields: &T, ) -> ApifyClientResult<ActorVersion>
Updates the version with the given fields.
Sourcepub async fn delete(&self) -> ApifyClientResult<()>
pub async fn delete(&self) -> ApifyClientResult<()>
Deletes the version.
Sourcepub fn env_var(&self, name: &str) -> ActorEnvVarClient
pub fn env_var(&self, name: &str) -> ActorEnvVarClient
Returns a client for a specific environment variable of this version.
Sourcepub fn env_vars(&self) -> ActorEnvVarCollectionClient
pub fn env_vars(&self) -> ActorEnvVarCollectionClient
Returns a client for this version’s environment variable collection.
Trait Implementations§
Source§impl Clone for ActorVersionClient
impl Clone for ActorVersionClient
Source§fn clone(&self) -> ActorVersionClient
fn clone(&self) -> ActorVersionClient
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 ActorVersionClient
impl !UnwindSafe for ActorVersionClient
impl Freeze for ActorVersionClient
impl Send for ActorVersionClient
impl Sync for ActorVersionClient
impl Unpin for ActorVersionClient
impl UnsafeUnpin for ActorVersionClient
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