pub struct UserFull {
Show 28 fields pub id: Option<String>, pub type: RHashType, pub name: Option<String>, pub login: Option<String>, pub created_at: Option<String>, pub modified_at: Option<String>, pub language: Option<String>, pub timezone: Option<String>, pub space_amount: Option<i64>, pub space_used: Option<i64>, pub max_upload_size: Option<i64>, pub status: Option<Status>, pub job_title: Option<String>, pub phone: Option<String>, pub address: Option<String>, pub avatar_url: Option<String>, pub role: Option<Role>, pub tracking_codes: Option<Vec<TrackingCode>>, pub can_see_managed_users: Option<bool>, pub is_sync_enabled: Option<bool>, pub is_external_collab_restricted: Option<bool>, pub is_exempt_from_device_limits: Option<bool>, pub is_exempt_from_login_verification: Option<bool>, pub enterprise: Option<Box<UserFullAllOfEnterprise>>, pub my_tags: Option<Vec<String>>, pub hostname: Option<String>, pub is_platform_access_only: Option<bool>, pub external_app_user_id: Option<String>,
}
Expand description

UserFull : A full representation of a user, as can be returned from any user API endpoint.

Fields§

§id: Option<String>

The unique identifier for this user

§type: RHashType

user

§name: Option<String>

The display name of this user

§login: Option<String>

The primary email address of this user

§created_at: Option<String>

When the user object was created

§modified_at: Option<String>

When the user object was last modified

§language: Option<String>

The language of the user, formatted in modified version of the ISO 639-1 format.

§timezone: Option<String>

The user’s timezone

§space_amount: Option<i64>

The user’s total available space amount in bytes

§space_used: Option<i64>

The amount of space in use by the user

§max_upload_size: Option<i64>

The maximum individual file size in bytes the user can have

§status: Option<Status>

The user’s account status

§job_title: Option<String>

The user’s job title

§phone: Option<String>

The user’s phone number

§address: Option<String>

The user’s address

§avatar_url: Option<String>

URL of the user’s avatar image

§role: Option<Role>

The user’s enterprise role

§tracking_codes: Option<Vec<TrackingCode>>

Tracking codes allow an admin to generate reports from the admin console and assign an attribute to a specific group of users. This setting must be enabled for an enterprise before it can be used.

§can_see_managed_users: Option<bool>

Whether the user can see other enterprise users in their contact list

§is_sync_enabled: Option<bool>

Whether the user can use Box Sync

§is_external_collab_restricted: Option<bool>

Whether the user is allowed to collaborate with users outside their enterprise

§is_exempt_from_device_limits: Option<bool>

Whether to exempt the user from Enterprise device limits

§is_exempt_from_login_verification: Option<bool>

Whether the user must use two-factor authentication

§enterprise: Option<Box<UserFullAllOfEnterprise>>§my_tags: Option<Vec<String>>

Tags for all files and folders owned by the user. Values returned will only contain tags that were set by the requester.

§hostname: Option<String>

The root (protocol, subdomain, domain) of any links that need to be generated for the user

§is_platform_access_only: Option<bool>

Whether the user is an App User

§external_app_user_id: Option<String>

An external identifier for an app user, which can be used to look up the user. This can be used to tie user IDs from external identity providers to Box users.

Implementations§

source§

impl UserFull

source

pub fn new(type: RHashType) -> UserFull

A full representation of a user, as can be returned from any user API endpoint.

Trait Implementations§

source§

impl Clone for UserFull

source§

fn clone(&self) -> UserFull

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for UserFull

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for UserFull

source§

fn default() -> UserFull

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for UserFull

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<UserFull> for UserFull

source§

fn eq(&self, other: &UserFull) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for UserFull

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for UserFull

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,