pub struct Role { /* private fields */ }Expand description
Native representation of a Role
A Role defines the permissions that are able to be assigned to an Organization’s Agent.
This allows agents to perform actions defined within their role.
Implementations§
Trait Implementations§
Source§impl FromBytes<Role> for Role
impl FromBytes<Role> for Role
fn from_bytes(bytes: &[u8]) -> Result<Role, ProtoConversionError>
Source§impl FromNative<Role> for Role
impl FromNative<Role> for Role
fn from_native(role: Role) -> Result<Self, ProtoConversionError>
Source§impl FromProto<Role> for Role
impl FromProto<Role> for Role
fn from_proto(role: Role) -> Result<Self, ProtoConversionError>
Source§impl IntoNative<Role> for Role
impl IntoNative<Role> for Role
fn into_native(self) -> Result<T, ProtoConversionError>
Source§impl IntoProto<Role> for Role
impl IntoProto<Role> for Role
fn into_proto(self) -> Result<T, ProtoConversionError>
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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