pub struct ProjectRole {
pub param_self: Option<String>,
pub name: Option<String>,
pub id: Option<i64>,
pub description: Option<String>,
pub actors: Option<Vec<RoleActor>>,
pub scope: Option<Scope>,
pub translated_name: Option<String>,
pub current_user_role: Option<bool>,
pub admin: Option<bool>,
pub role_configurable: Option<bool>,
pub default: Option<bool>,
}
Expand description
ProjectRole : Details about the roles in a project.
Fields§
§param_self: Option<String>
The URL the project role details.
name: Option<String>
The name of the project role.
id: Option<i64>
The ID of the project role.
description: Option<String>
The description of the project role.
actors: Option<Vec<RoleActor>>
The list of users who act in this role.
scope: Option<Scope>
The scope of the role. Indicated for roles associated with next-gen projects.
translated_name: Option<String>
The translated name of the project role.
current_user_role: Option<bool>
Whether the calling user is part of this role.
admin: Option<bool>
Whether this role is the admin role for the project.
role_configurable: Option<bool>
Whether the roles are configurable for this project.
default: Option<bool>
Whether this role is the default role for the project
Implementations§
Source§impl ProjectRole
impl ProjectRole
Sourcepub fn new() -> ProjectRole
pub fn new() -> ProjectRole
Details about the roles in a project.
Trait Implementations§
Source§impl Clone for ProjectRole
impl Clone for ProjectRole
Source§fn clone(&self) -> ProjectRole
fn clone(&self) -> ProjectRole
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 ProjectRole
impl Debug for ProjectRole
Source§impl Default for ProjectRole
impl Default for ProjectRole
Source§fn default() -> ProjectRole
fn default() -> ProjectRole
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProjectRole
impl<'de> Deserialize<'de> for ProjectRole
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 ProjectRole
impl PartialEq for ProjectRole
Source§impl Serialize for ProjectRole
impl Serialize for ProjectRole
impl StructuralPartialEq for ProjectRole
Auto Trait Implementations§
impl Freeze for ProjectRole
impl RefUnwindSafe for ProjectRole
impl Send for ProjectRole
impl Sync for ProjectRole
impl Unpin for ProjectRole
impl UnwindSafe for ProjectRole
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