Enum Atif Storage Config

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub enum AtifStorageConfig {
    Http(HttpStorageConfig),
    S3(S3StorageConfig),
}

Remote storage destination for ATIF trajectory files.

When AtifSectionConfig::storage is non-empty, the ATIF dispatcher uploads each completed trajectory to every configured backend instead of writing it to the local filesystem. The shape is tagged with a type discriminator so additional backends (for example, Azure Blob Storage) can be added without breaking existing configs.

Variants

Http(HttpStorageConfig)

Http(HttpStorageConfig)

HTTP endpoint storage.

S3(S3StorageConfig)

S3(S3StorageConfig)

S3-compatible object storage.

Non-secret connection settings (region, endpoint_url, allow_http) and the static access_key_id may be set directly. The secret credential fields (secret_access_key_var, session_token_var) must reference the name of an environment variable that holds the secret, so multiple S3 destinations can coexist in one config without writing secrets into checked-in files. Any field left unset falls back to the matching AWS_* environment variable (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_REGION, AWS_ENDPOINT_URL, AWS_ALLOW_HTTP).

Trait Implementations

impl Clone for AtifStorageConfig

impl Clone for AtifStorageConfig

clone

fn clone(&self) -> AtifStorageConfig

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for AtifStorageConfig

impl Debug for AtifStorageConfig

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for AtifStorageConfig

impl<'de> Deserialize<'de> for AtifStorageConfig

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl Serialize for AtifStorageConfig

impl Serialize for AtifStorageConfig

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,