pub struct UserInfo { /* private fields */ }Expand description
Information about a portal user.
Returned by the getSelf operation and other user-related queries.
Implementations§
Source§impl UserInfo
Auto-generated by derive_getters::Getters.
impl UserInfo
Auto-generated by derive_getters::Getters.
Sourcepub fn role(&self) -> &Option<String>
pub fn role(&self) -> &Option<String>
User role (e.g., “org_admin”, “org_publisher”, “org_user”).
Sourcepub fn privileges(&self) -> &Vec<String>
pub fn privileges(&self) -> &Vec<String>
Privileges assigned to the user.
Sourcepub fn groups(&self) -> &Vec<GroupMembership>
pub fn groups(&self) -> &Vec<GroupMembership>
Groups the user belongs to.
Sourcepub fn storage_quota(&self) -> &Option<i64>
pub fn storage_quota(&self) -> &Option<i64>
Storage quota in bytes.
Sourcepub fn storage_usage(&self) -> &Option<i64>
pub fn storage_usage(&self) -> &Option<i64>
Storage usage in bytes.
Sourcepub fn description(&self) -> &Option<String>
pub fn description(&self) -> &Option<String>
User description.
Tags associated with the user.
Sourcepub fn preferred_view(&self) -> &Option<String>
pub fn preferred_view(&self) -> &Option<String>
User’s preferred view (Web, GIS, null).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserInfo
impl<'de> Deserialize<'de> for UserInfo
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 UserInfo
Auto Trait Implementations§
impl Freeze for UserInfo
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnwindSafe for UserInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more