pub trait RoleAssignmentObject {
    // Required method
    fn self_id(&self) -> (&NodeId, Option<AttachedModuleId>);

    // Provided methods
    fn set_owner_role<Y, E, A>(&self, rule: A, api: &mut Y) -> Result<(), E>
       where Y: ClientApi<E>,
             E: Debug + ScryptoDecode,
             A: Into<AccessRule> { ... }
    fn lock_owner_role<Y, E>(&self, api: &mut Y) -> Result<(), E>
       where Y: ClientApi<E>,
             E: Debug + ScryptoDecode { ... }
    fn set_role<Y, E, R, A>(
        &self,
        module: ModuleId,
        role_key: R,
        rule: A,
        api: &mut Y
    ) -> Result<(), E>
       where Y: ClientApi<E>,
             E: Debug + ScryptoDecode,
             R: Into<RoleKey>,
             A: Into<AccessRule> { ... }
    fn get_role<Y, E, R>(
        &self,
        module: ModuleId,
        role_key: R,
        api: &mut Y
    ) -> Result<(), E>
       where Y: ClientApi<E>,
             E: Debug + ScryptoDecode,
             R: Into<RoleKey> { ... }
}

Required Methods§

Provided Methods§

fn set_owner_role<Y, E, A>(&self, rule: A, api: &mut Y) -> Result<(), E>
where Y: ClientApi<E>, E: Debug + ScryptoDecode, A: Into<AccessRule>,

fn lock_owner_role<Y, E>(&self, api: &mut Y) -> Result<(), E>
where Y: ClientApi<E>, E: Debug + ScryptoDecode,

fn set_role<Y, E, R, A>( &self, module: ModuleId, role_key: R, rule: A, api: &mut Y ) -> Result<(), E>
where Y: ClientApi<E>, E: Debug + ScryptoDecode, R: Into<RoleKey>, A: Into<AccessRule>,

fn get_role<Y, E, R>( &self, module: ModuleId, role_key: R, api: &mut Y ) -> Result<(), E>
where Y: ClientApi<E>, E: Debug + ScryptoDecode, R: Into<RoleKey>,

Object Safety§

This trait is not object safe.

Implementors§