pub struct VersionsClient { /* private fields */ }Expand description
Sub-client for script versions. Obtained via AkribesClient::project(id).versions().
Implementations§
Source§impl VersionsClient
impl VersionsClient
pub async fn list(&self, script_name: &str) -> Result<Vec<ScriptVersion>>
pub async fn get( &self, script_name: &str, version_id: i64, ) -> Result<Option<ScriptVersion>>
pub async fn get_latest( &self, script_name: &str, ) -> Result<Option<LatestVersion>>
Sourcepub fn publish(&self, script_name: &str) -> PublishBuilder
pub fn publish(&self, script_name: &str) -> PublishBuilder
Start building a publish operation.
Trait Implementations§
Source§impl Clone for VersionsClient
impl Clone for VersionsClient
Source§fn clone(&self) -> VersionsClient
fn clone(&self) -> VersionsClient
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 VersionsClient
impl !UnwindSafe for VersionsClient
impl Freeze for VersionsClient
impl Send for VersionsClient
impl Sync for VersionsClient
impl Unpin for VersionsClient
impl UnsafeUnpin for VersionsClient
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