pub struct Role {Show 19 fields
pub role_id: String,
pub role_legacy_id: Option<i32>,
pub role_name: String,
pub role_description: Option<String>,
pub is_internal: Option<bool>,
pub requires_token: Option<bool>,
pub assigned_to_proxy_users: Option<bool>,
pub team_admin_manageable: Option<bool>,
pub jit_assignable: Option<bool>,
pub jit_assignable_default: Option<bool>,
pub is_api: Option<bool>,
pub is_scan_type: Option<bool>,
pub ignore_team_restrictions: Option<bool>,
pub is_hmac_only: Option<bool>,
pub org_id: Option<String>,
pub child_roles: Option<Vec<Value>>,
pub role_disabled: Option<bool>,
pub permissions: Option<Vec<Permission>>,
pub links: Option<Value>,
}
Expand description
Represents a user role
Fields§
§role_id: String
Unique role ID
role_legacy_id: Option<i32>
Legacy role ID (optional)
role_name: String
Role name
role_description: Option<String>
Role description
is_internal: Option<bool>
Whether this is an internal Veracode role
requires_token: Option<bool>
Whether the role requires a token
assigned_to_proxy_users: Option<bool>
Whether the role is assigned to proxy users
team_admin_manageable: Option<bool>
Whether team admins can manage this role
jit_assignable: Option<bool>
Whether the role is JIT assignable
jit_assignable_default: Option<bool>
Whether the role is JIT assignable by default
is_api: Option<bool>
Whether this is an API role
is_scan_type: Option<bool>
Whether this is a scan type role
ignore_team_restrictions: Option<bool>
Whether the role ignores team restrictions
is_hmac_only: Option<bool>
Whether the role is HMAC only
org_id: Option<String>
Organization ID (for custom roles)
child_roles: Option<Vec<Value>>
Child roles (nested roles)
role_disabled: Option<bool>
Whether the role is disabled
permissions: Option<Vec<Permission>>
List of permissions granted by this role
links: Option<Value>
Links for navigation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Role
impl<'de> Deserialize<'de> for Role
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
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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