pub struct PermissionAssignmentTarget {
pub domain_id: i64,
pub domain_type: String,
pub label: String,
pub extra: Map<String, Value>,
}Expand description
Selectable assignment owner, including owners without existing permission assignments. The pair domainType and domainId identifies the target and can be passed to the permission write endpoints.
Fields§
§domain_id: i64Status, role template, concrete group role, or person ID. For group_role this is neither the group ID nor the role template ID.
domain_type: StringAssignment owner: person status, role template of a group type, role in a concrete group, or direct person assignment. These are assignment sources, not necessarily the objects on which the permission takes effect.
Allowed values: group_role, group_type_role, person, status.
label: StringDisplay label localized in the current request language
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for PermissionAssignmentTarget
impl Clone for PermissionAssignmentTarget
Source§impl Debug for PermissionAssignmentTarget
impl Debug for PermissionAssignmentTarget
Source§impl Default for PermissionAssignmentTarget
impl Default for PermissionAssignmentTarget
Source§impl<'de> Deserialize<'de> for PermissionAssignmentTarget
impl<'de> Deserialize<'de> for PermissionAssignmentTarget
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 PermissionAssignmentTarget
Auto Trait Implementations§
impl Freeze for PermissionAssignmentTarget
impl RefUnwindSafe for PermissionAssignmentTarget
impl Send for PermissionAssignmentTarget
impl Sync for PermissionAssignmentTarget
impl Unpin for PermissionAssignmentTarget
impl UnsafeUnpin for PermissionAssignmentTarget
impl UnwindSafe for PermissionAssignmentTarget
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