Skip to main content

ChangeArtifactBundleClient

Trait ChangeArtifactBundleClient 

Source
pub trait ChangeArtifactBundleClient: Debug + Clone {
    // Required methods
    fn pull_bundle(
        &self,
        change_id: &str,
    ) -> ChangeArtifactMutationServiceResult<ArtifactBundle>;
    fn push_bundle(
        &self,
        change_id: &str,
        bundle: &ArtifactBundle,
    ) -> ChangeArtifactMutationServiceResult<String>;
}
Expand description

Client abstraction for bundle-backed artifact mutation services.

Required Methods§

Source

fn pull_bundle( &self, change_id: &str, ) -> ChangeArtifactMutationServiceResult<ArtifactBundle>

Pull the latest artifact bundle for a change.

Source

fn push_bundle( &self, change_id: &str, bundle: &ArtifactBundle, ) -> ChangeArtifactMutationServiceResult<String>

Push an updated artifact bundle and return the resulting revision.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§