AssignRoleRequest
Rust struct goodmem::models::AssignRoleRequest: declaration, fields or variants, and implementations.
Struct AssignRoleRequest
goodmem::models::AssignRoleRequest
Assigns one code-defined role at an INSTANCE or SPACE boundary.
pub struct AssignRoleRequest {
pub role_assignment_id: Option<String>,
pub principal_id: String,
pub role: AssignRoleRequestRole,
pub assigned_resource: Box<RoleAssignmentTarget>,
}Referenced types: AssignRoleRequestRole, RoleAssignmentTarget.
Fields
role_assignment_id
pub role_assignment_id: Option<String>
Optional caller-provided role-assignment UUID.
Wire name: roleAssignmentId.
principal_id
pub principal_id: String
Active principal receiving the role.
Wire name: principalId.
role
pub role: AssignRoleRequestRole
Code-defined non-ROOT role to assign.
Wire name: role.
assigned_resource
pub assigned_resource: Box<RoleAssignmentTarget>
INSTANCE or SPACE boundary receiving the assignment.
Wire name: assignedResource.
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 AssignRoleRequestimpl std::fmt::Debug for AssignRoleRequest