Struct odra_modules::access::events::RoleAdminChanged
source · pub struct RoleAdminChanged {
pub role: Role,
pub previous_admin_role: Role,
pub new_admin_role: Role,
}Expand description
Informs new_admin_role is set as role’s admin role, replacing previous_admin_role.
DEFAULT_ADMIN_ROLE is the starting admin for all roles,
but RoleAdminChanged not being emitted signaling this.
Fields§
§role: Role§previous_admin_role: Role§new_admin_role: RoleTrait Implementations§
source§impl BorshDeserialize for RoleAdminChanged
impl BorshDeserialize for RoleAdminChanged
source§fn deserialize(buf: &mut &[u8]) -> Result<Self>
fn deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
source§impl BorshSerialize for RoleAdminChanged
impl BorshSerialize for RoleAdminChanged
source§impl Debug for RoleAdminChanged
impl Debug for RoleAdminChanged
source§impl OdraEvent for RoleAdminChanged
impl OdraEvent for RoleAdminChanged
source§impl PartialEq<RoleAdminChanged> for RoleAdminChanged
impl PartialEq<RoleAdminChanged> for RoleAdminChanged
source§fn eq(&self, other: &RoleAdminChanged) -> bool
fn eq(&self, other: &RoleAdminChanged) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for RoleAdminChanged
impl StructuralEq for RoleAdminChanged
impl StructuralPartialEq for RoleAdminChanged
Auto Trait Implementations§
impl RefUnwindSafe for RoleAdminChanged
impl Send for RoleAdminChanged
impl Sync for RoleAdminChanged
impl Unpin for RoleAdminChanged
impl UnwindSafe for RoleAdminChanged
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more