pub struct RoleGrant {
pub role: String,
pub account: String,
pub granted_by: String,
pub granted_at: Timestamp,
pub expires_at: Timestamp,
}Expand description
A role given to an account for a limited time (okbot role grant, /grant).
Fields§
§role: StringA role from [roles].
account: StringThe account, as platform:instance/user-id.
granted_by: StringWho granted it (an account, or operator for the terminal).
granted_at: TimestampWhen it was granted.
expires_at: TimestampWhen it ends.
Trait Implementations§
impl Eq for RoleGrant
impl StructuralPartialEq for RoleGrant
Auto Trait Implementations§
impl Freeze for RoleGrant
impl RefUnwindSafe for RoleGrant
impl Send for RoleGrant
impl Sync for RoleGrant
impl Unpin for RoleGrant
impl UnsafeUnpin for RoleGrant
impl UnwindSafe for RoleGrant
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