pub struct AssignedRoleDetails {
pub id: String,
pub name: String,
pub permissions: Vec<String>,
pub resource_type: String,
pub predefined_role: bool,
pub description: Option<String>,
pub created_at: Option<u64>,
pub updated_at: Option<u64>,
pub created_by: Option<String>,
pub created_by_user_obj: Option<Value>,
pub metadata: Option<Value>,
}Expand description
Detailed information about a role assignment entry returned when listing assignments.
Fields§
§id: StringIdentifier for the role.
name: StringName of the role.
permissions: Vec<String>Permissions associated with the role.
resource_type: StringResource type the role applies to.
predefined_role: boolWhether the role is predefined by OpenAI.
description: Option<String>Description of the role.
created_at: Option<u64>When the role was created.
updated_at: Option<u64>When the role was last updated.
created_by: Option<String>Identifier of the actor who created the role.
created_by_user_obj: Option<Value>User details for the actor that created the role, when available.
metadata: Option<Value>Arbitrary metadata stored on the role.
Trait Implementations§
Source§impl Clone for AssignedRoleDetails
impl Clone for AssignedRoleDetails
Source§fn clone(&self) -> AssignedRoleDetails
fn clone(&self) -> AssignedRoleDetails
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 AssignedRoleDetails
impl Debug for AssignedRoleDetails
Source§impl<'de> Deserialize<'de> for AssignedRoleDetails
impl<'de> Deserialize<'de> for AssignedRoleDetails
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 AssignedRoleDetails
impl PartialEq for AssignedRoleDetails
Source§impl Serialize for AssignedRoleDetails
impl Serialize for AssignedRoleDetails
impl StructuralPartialEq for AssignedRoleDetails
Auto Trait Implementations§
impl Freeze for AssignedRoleDetails
impl RefUnwindSafe for AssignedRoleDetails
impl Send for AssignedRoleDetails
impl Sync for AssignedRoleDetails
impl Unpin for AssignedRoleDetails
impl UnwindSafe for AssignedRoleDetails
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