pub struct Role {
pub id: RoleId,
pub name: String,
pub role_type: String,
pub person: Option<String>,
}Expand description
A resolved role.
Fields§
§id: RoleIdRole identifier.
name: StringHuman-readable name (derived or explicit).
role_type: StringRole type: the prefix before __ (or the whole ID if no __).
E.g. "witness__1" → "witness", "operator" → "operator".
person: Option<String>The person assigned to this role slot, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin 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