pub struct User {Show 17 fields
pub user_id: String,
pub user_legacy_id: Option<u32>,
pub user_name: String,
pub email_address: String,
pub first_name: String,
pub last_name: String,
pub user_type: Option<UserType>,
pub active: Option<bool>,
pub login_enabled: Option<bool>,
pub saml_user: Option<bool>,
pub roles: Option<Vec<Role>>,
pub teams: Option<Vec<Team>>,
pub login_status: Option<LoginStatus>,
pub created_date: Option<DateTime<Utc>>,
pub modified_date: Option<DateTime<Utc>>,
pub api_credentials: Option<Vec<ApiCredential>>,
pub links: Option<Value>,
}
Expand description
Represents a Veracode user account
Fields§
§user_id: String
Unique user ID
user_legacy_id: Option<u32>
Legacy user ID
user_name: String
Username for the account
email_address: String
User’s email address
first_name: String
User’s first name
last_name: String
User’s last name
user_type: Option<UserType>
User account type (optional in basic response)
active: Option<bool>
Whether the user account is active (optional in basic response)
login_enabled: Option<bool>
Whether login is enabled
saml_user: Option<bool>
Whether this is a SAML user
roles: Option<Vec<Role>>
List of roles assigned to the user (only in detailed response)
teams: Option<Vec<Team>>
List of teams the user belongs to (only in detailed response)
login_status: Option<LoginStatus>
Login status information (only in detailed response)
created_date: Option<DateTime<Utc>>
Date when the user was created (only in detailed response)
modified_date: Option<DateTime<Utc>>
Date when the user was last modified (only in detailed response)
api_credentials: Option<Vec<ApiCredential>>
API credentials information (for API service accounts, only in detailed response)
links: Option<Value>
Links for navigation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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 User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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