pub fn authorize_private_asset(
app: &AppRuntime,
request_path: &str,
actor_id: i64,
) -> Result<Option<AuthorizedPrivateAsset>, FeatureRuntimeError>Expand description
Authorizes access to a private asset through the configured backend.
§Parameters
app: Input consumed bycrate::runtime::feature_runtime::authorize_private_asset.request_path: Input consumed bycrate::runtime::feature_runtime::authorize_private_asset.actor_id: Input consumed bycrate::runtime::feature_runtime::authorize_private_asset.
§Returns
Returns the successful value produced by crate::runtime::feature_runtime::authorize_private_asset or an error when the operation fails.
§Errors
Returns an error value when crate::runtime::feature_runtime::authorize_private_asset cannot complete successfully.
§Examples
ⓘ
let _result = pharos_native::runtime::feature_runtime::authorize_private_asset(todo!(), "/", 1);§Related
crate::runtime::feature_runtimefor adjacent helpers that share the same runtime surface.