RoleAssignment
Rust struct goodmem::models::RoleAssignment: declaration, fields or variants, and implementations.
Struct RoleAssignment
goodmem::models::RoleAssignment
Current or historical scoped role assignment.
pub struct RoleAssignment {
pub role_assignment_id: String,
pub principal_id: String,
pub role: Role,
pub assigned_resource: Box<RoleAssignmentTarget>,
pub assigned_at: i64,
pub assigned_by_id: String,
pub revoked_at: Option<i64>,
pub revoked_by_id: Option<String>,
}Referenced types: Role, RoleAssignmentTarget.
Fields
role_assignment_id
pub role_assignment_id: String
Durable role-assignment UUID.
Wire name: roleAssignmentId.
principal_id
pub principal_id: String
Assigned principal UUID.
Wire name: principalId.
role
pub role: Role
Code-defined assigned role.
Wire name: role.
assigned_resource
pub assigned_resource: Box<RoleAssignmentTarget>
INSTANCE or SPACE assignment boundary.
Wire name: assignedResource.
assigned_at
pub assigned_at: i64
Assignment time in epoch milliseconds.
Wire name: assignedAt.
assigned_by_id
pub assigned_by_id: String
Exact audit actor that assigned the role.
Wire name: assignedById.
revoked_at
pub revoked_at: Option<i64>
Revocation time in epoch milliseconds, when revoked.
Wire name: revokedAt.
revoked_by_id
pub revoked_by_id: Option<String>
Exact audit actor that revoked the assignment, when revoked.
Wire name: revokedById.
Implementations
validate
pub fn validate(&self) -> crate::Result<()>
Validate the request before sending, without making an HTTP call.
Trait implementations
Clone(derived)Default(derived)PartialEq(derived)Serialize(derived)impl<'de> Deserialize<'de> for RoleAssignmentimpl std::fmt::Debug for RoleAssignment