pub struct Role {
pub name: Option<String>,
pub user_ids: Option<Vec<i64>>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub id: Option<i64>,
}Fields§
§name: Option<String>The name of the role.
user_ids: Option<Vec<i64>>The IDs of the users assigned to this role.
created_at: Option<String>Date and time the role was created.
updated_at: Option<String>Date and time the role was last updated.
id: Option<i64>Unique ID for the role.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Role
impl<'de> Deserialize<'de> for Role
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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