Skip to main content

BuildServices

Trait BuildServices 

Source
pub trait BuildServices: Send + Sync {
    // Required methods
    fn caller_account(&self) -> BoxFuture<'_, Result<String, Error>>;
    fn put_object<'a>(
        &'a self,
        bucket: &'a str,
        key: &'a str,
        bytes: Vec<u8>,
    ) -> BoxFuture<'a, Result<(), Error>>;
}
Expand description

The seam ensure_image reaches STS and S3 through.

Required Methods§

Source

fn caller_account(&self) -> BoxFuture<'_, Result<String, Error>>

The caller’s twelve-digit account id.

Source

fn put_object<'a>( &'a self, bucket: &'a str, key: &'a str, bytes: Vec<u8>, ) -> BoxFuture<'a, Result<(), Error>>

Puts bytes at s3://<bucket>/<key>.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§