Skip to main content

TierRequestBuilder

Trait TierRequestBuilder 

Source
pub trait TierRequestBuilder {
    // Required method
    fn build(
        &self,
        asset_id: &str,
        blob: &TierBlob,
    ) -> (CreateUploadRequest, Vec<u8>);
}
Expand description

Builds the per-blob upload request + ciphertext the scheduler hands to the upload client. The app implements this — it holds the sealed bytes and the signed manifest envelope; the scheduler owns only the tier ordering and gating, so the two policies stay on one code path.

Required Methods§

Source

fn build( &self, asset_id: &str, blob: &TierBlob, ) -> (CreateUploadRequest, Vec<u8>)

The POST /upload request and ciphertext bytes for one tier blob.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§