pub struct Role { /* private fields */ }
Expand description
User’s role
Implementations§
Source§impl Role
impl Role
Sourcepub fn existing(
id: i32,
name: String,
created_at: DateTime<Utc>,
updated_at: DateTime<Utc>,
) -> Role
pub fn existing( id: i32, name: String, created_at: DateTime<Utc>, updated_at: DateTime<Utc>, ) -> Role
for mapping purposes only
pub fn id(&self) -> i32
pub fn name(&self) -> &str
pub fn created_at(&self) -> DateTime<Utc>
pub fn updated_at(&self) -> DateTime<Utc>
pub fn set_name(&mut self, value: String)
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 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