Skip to main content

authorize_private_asset

Function authorize_private_asset 

Source
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

§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);