Function snapps_txn_reference_impl::update_logic::apply_permissions_update[][src]

pub fn apply_permissions_update<'a>(
    account: Account<'a>,
    update: &PartyUpdate<'_>
) -> Account<'a>
Expand description

Update the permissions field of account::Account with the new value from the party::PartyUpdate.

Using set_or_keep:

account.permissions = set_or_keep(account.permissions, update.permissions)