pub struct ParseRole {
pub object_id: Option<String>,
pub created_at: Option<ParseDate>,
pub updated_at: Option<ParseDate>,
pub name: String,
pub acl: ParseACL,
pub other_fields: HashMap<String, Value>,
}
Expand description
Represents a Parse Role object, used for grouping users and other roles to manage permissions.
Fields§
§object_id: Option<String>
The unique identifier for the role object.
created_at: Option<ParseDate>
The timestamp when the role was created.
updated_at: Option<ParseDate>
The timestamp when the role was last updated.
name: String
The name of the role. This is required and must be unique. It can only be set upon creation.
acl: ParseACL
The Access Control List for this role, determining who can read or write it.
other_fields: HashMap<String, Value>
Placeholder for any other custom fields that might be on a Role object. While the _Role class is special, Parse Server might allow adding custom fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ParseRole
impl<'de> Deserialize<'de> for ParseRole
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
impl StructuralPartialEq for ParseRole
Auto Trait Implementations§
impl Freeze for ParseRole
impl RefUnwindSafe for ParseRole
impl Send for ParseRole
impl Sync for ParseRole
impl Unpin for ParseRole
impl UnwindSafe for ParseRole
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