Skip to main content

BuildServices

Trait BuildServices 

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

The seam ensure_image reaches STS and S3 through.

Required Methods§

Source

fn caller_account( &self, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + '_>>

The caller’s twelve-digit account id.

Source

fn put_object<'a>( &'a self, bucket: &'a str, key: &'a str, bytes: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>

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§