async fn export_key_to_asc_file<T>(
    context: &Context,
    dir: &Path,
    id: Option<i64>,
    key: &T
) -> Result<()>
where T: DcKey + Any,