coil-runtime 0.1.1

HTTP runtime and request handling for the Coil framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

use coil_assets::AssetModelError;
use coil_storage::{StoragePlanningError, execution::StorageExecutionError};

#[derive(Debug, Error, PartialEq, Eq)]
pub enum RuntimeStorageError {
    #[error(transparent)]
    Storage(#[from] StoragePlanningError),
    #[error(transparent)]
    Execution(#[from] StorageExecutionError),
    #[error(transparent)]
    Asset(#[from] AssetModelError),
    #[error("assets.cdn_base_url must be configured for public asset publication")]
    MissingCdnBaseUrl,
    #[error("asset publication authorization failed for `{asset_id}`: {reason}")]
    PublicationAuthorizationDenied { asset_id: String, reason: String },
}