backend::service::application_settings

Function find_by_key

source
pub async fn find_by_key(
    key: &str,
    conn: &mut AsyncPgConnection,
) -> Result<ApplicationSettingDto, ServiceError>
Expand description

Find an application setting by key

ยงErrors

If the connection to the database could not be established. If no application setting with the key key exists.