#[non_exhaustive]pub struct WhoAmI {
pub id: i32,
pub first_name: String,
pub last_name: String,
pub email: String,
pub machine_service: bool,
pub ui_role: String,
pub ui_privilege: String,
pub links: HashMap<String, Url>,
}Expand description
The data model returned from the api/users/search/whoami endpoint
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: i32ID of the user
first_name: StringFirst name of the user
last_name: StringLast name of the user
email: StringEmail address of the user
machine_service: boolDescribes whether the associated user was created as a machine service user
ui_role: StringThe role assigned to the user
ui_privilege: StringThe set of privileges assigned to the user
links: HashMap<String, Url>Trait Implementations§
impl StructuralPartialEq for WhoAmI
Auto Trait Implementations§
impl Freeze for WhoAmI
impl RefUnwindSafe for WhoAmI
impl Send for WhoAmI
impl Sync for WhoAmI
impl Unpin for WhoAmI
impl UnsafeUnpin for WhoAmI
impl UnwindSafe for WhoAmI
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