pub struct User {Show 16 fields
pub object: String,
pub id: String,
pub name: Option<String>,
pub email: Option<String>,
pub role: Option<String>,
pub added_at: u64,
pub is_default: Option<bool>,
pub created: Option<u64>,
pub user: Option<UserNested>,
pub is_service_account: Option<bool>,
pub is_scale_tier_authorized_purchaser: Option<bool>,
pub is_scim_managed: Option<bool>,
pub api_key_last_used_at: Option<u64>,
pub technical_level: Option<String>,
pub developer_persona: Option<String>,
pub projects: Option<UserProjects>,
}Available on crate feature
administration-types only.Expand description
Represents an individual user within an organization.
Fields§
§object: StringThe object type, which is always organization.user
id: StringThe identifier, which can be referenced in API endpoints
name: Option<String>The name of the user
email: Option<String>The email address of the user
role: Option<String>owner or reader
added_at: u64The Unix timestamp (in seconds) of when the user was added.
is_default: Option<bool>Whether this is the organization’s default user.
created: Option<u64>The Unix timestamp (in seconds) of when the user was created.
user: Option<UserNested>Nested user details.
is_service_account: Option<bool>Whether the user is a service account.
Whether the user is an authorized purchaser for Scale Tier.
is_scim_managed: Option<bool>Whether the user is managed through SCIM.
api_key_last_used_at: Option<u64>The Unix timestamp (in seconds) of the user’s last API key usage.
technical_level: Option<String>The technical level metadata for the user.
developer_persona: Option<String>The developer persona metadata for the user.
projects: Option<UserProjects>Projects associated with the user, if included.
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
impl StructuralPartialEq for User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnsafeUnpin 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