Skip to main content

email_load_relay_config

Function email_load_relay_config 

Source
pub fn email_load_relay_config(
    app_root: &Path,
    runtime_conf_path: Option<&Path>,
    relay_key_prefix: Option<&str>,
) -> Result<EmailConfig, &'static str>
Expand description

Loads one relay using app-over-runtime configuration precedence.

§Parameters

§Returns

Returns the successful value produced by crate::runtime::business::email_load_relay_config or an error when the operation fails.

§Errors

Returns an error value when crate::runtime::business::email_load_relay_config cannot complete successfully.

§Examples

ⓘ
let _result = pharos_native::runtime::business::email_load_relay_config(std::path::Path::new("apps/dev_docs"), todo!(), todo!());