Struct dropbox_sdk::sharing::UserInfo[][src]

#[non_exhaustive]pub struct UserInfo {
    pub account_id: AccountId,
    pub email: String,
    pub display_name: String,
    pub same_team: bool,
    pub team_member_id: Option<String>,
}
This is supported on crate feature dbx_sharing only.

Basic information about a user. Use users::get_account() and users::get_account_batch() to obtain more detailed information.

Fields (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.
account_id: AccountId

The account ID of the user.

email: String

Email address of user.

display_name: String

The display name of the user.

same_team: bool

If the user is in the same team as current user.

team_member_id: Option<String>

The team member ID of the shared folder member. Only present if same_team is true.

Implementations

impl UserInfo[src]

pub fn new(
    account_id: AccountId,
    email: String,
    display_name: String,
    same_team: bool
) -> Self
[src]

pub fn with_team_member_id(self, value: String) -> Self[src]

Trait Implementations

impl Clone for UserInfo[src]

impl Debug for UserInfo[src]

impl<'de> Deserialize<'de> for UserInfo[src]

impl PartialEq<UserInfo> for UserInfo[src]

impl Serialize for UserInfo[src]

impl StructuralPartialEq for UserInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.