#[non_exhaustive]pub struct RoleAttributes {
pub created_at: Option<DateTime<Utc>>,
pub modified_at: Option<DateTime<Utc>>,
pub name: Option<String>,
pub user_count: Option<i64>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Attributes of the role.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.created_at: Option<DateTime<Utc>>
Creation time of the role.
modified_at: Option<DateTime<Utc>>
Time of last role modification.
name: Option<String>
The name of the role. The name is neither unique nor a stable identifier of the role.
user_count: Option<i64>
Number of users with that role.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl RoleAttributes
impl RoleAttributes
pub fn new() -> RoleAttributes
pub fn created_at(self, value: DateTime<Utc>) -> Self
pub fn modified_at(self, value: DateTime<Utc>) -> Self
pub fn name(self, value: String) -> Self
pub fn user_count(self, value: i64) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for RoleAttributes
impl Clone for RoleAttributes
Source§fn clone(&self) -> RoleAttributes
fn clone(&self) -> RoleAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RoleAttributes
impl Debug for RoleAttributes
Source§impl Default for RoleAttributes
impl Default for RoleAttributes
Source§impl<'de> Deserialize<'de> for RoleAttributes
impl<'de> Deserialize<'de> for RoleAttributes
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
Source§impl PartialEq for RoleAttributes
impl PartialEq for RoleAttributes
Source§impl Serialize for RoleAttributes
impl Serialize for RoleAttributes
impl StructuralPartialEq for RoleAttributes
Auto Trait Implementations§
impl Freeze for RoleAttributes
impl RefUnwindSafe for RoleAttributes
impl Send for RoleAttributes
impl Sync for RoleAttributes
impl Unpin for RoleAttributes
impl UnwindSafe for RoleAttributes
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