/// Initializes authorization for a canister based on the arguments passed at
/// initialization time.
Initializes authorization for a canister based on the arguments passed at
initialization time.
Initializes authorization for a canister based on the arguments passed at initialization time .
pub fn init_canister_authz(canister_authz: CanisterAuthzInfo) {
    let mut authz = AUTHZ_MAP.write().unwrap();
    authz.clear();
    for method_authz in canister_authz.methods_authz {
        authz.insert(method_authz.method_name.clone(), method_authz);
    }
}
pub fn init_canister_authz ( canister_authz : CanisterAuthzInfo ) { let mut authz = AUTHZ_MAP . write ( ) . unwrap ( ) ; authz . clear ( ) ; for method_authz in canister_authz . methods_authz { authz . insert ( method_authz . method_name . clone ( ) , method_authz ) ; } }
Initializes authorization for a canister based on the arguments passed at
initialization time.
Initializes authorization for a canister based on the arguments passed at initialization time .
canister_authz
CanisterAuthzInfo