Struct jira2::models::user_details::UserDetails
source · [−]pub struct UserDetails {
pub _self: Option<String>,
pub name: Option<String>,
pub key: Option<String>,
pub account_id: Option<String>,
pub email_address: Option<String>,
pub avatar_urls: Option<AvatarUrlsBean>,
pub display_name: Option<String>,
pub active: Option<bool>,
pub time_zone: Option<String>,
pub account_type: Option<String>,
}
Expand description
UserDetails : User details permitted by the user’s Atlassian Account privacy settings. However, be aware of these exceptions: * User record deleted from Atlassian: This occurs as the result of a right to be forgotten request. In this case, displayName
provides an indication and other parameters have default values or are blank (for example, email is blank). * User record corrupted: This occurs as a results of events such as a server import and can only happen to deleted users. In this case, accountId
returns unknown and all other parameters have fallback values. * User record unavailable: This usually occurs due to an internal service outage. In this case, all parameters have fallback values.
Fields
_self: Option<String>
The URL of the user.
name: Option<String>
This property is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
key: Option<String>
This property is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
account_id: Option<String>
The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.
email_address: Option<String>
The email address of the user. Depending on the user’s privacy settings, this may be returned as null.
avatar_urls: Option<AvatarUrlsBean>
The avatars of the user.
display_name: Option<String>
The display name of the user. Depending on the user’s privacy settings, this may return an alternative value.
active: Option<bool>
Whether the user is active.
time_zone: Option<String>
The time zone specified in the user’s profile. Depending on the user’s privacy settings, this may be returned as null.
account_type: Option<String>
The type of account represented by this user. This will be one of ‘atlassian’ (normal users), ‘app’ (application user) or ‘customer’ (Jira Service Desk customer user)
Implementations
sourceimpl UserDetails
impl UserDetails
sourcepub fn new() -> UserDetails
pub fn new() -> UserDetails
User details permitted by the user’s Atlassian Account privacy settings. However, be aware of these exceptions: * User record deleted from Atlassian: This occurs as the result of a right to be forgotten request. In this case, displayName
provides an indication and other parameters have default values or are blank (for example, email is blank). * User record corrupted: This occurs as a results of events such as a server import and can only happen to deleted users. In this case, accountId
returns unknown and all other parameters have fallback values. * User record unavailable: This usually occurs due to an internal service outage. In this case, all parameters have fallback values.
Trait Implementations
sourceimpl Clone for UserDetails
impl Clone for UserDetails
sourcefn clone(&self) -> UserDetails
fn clone(&self) -> UserDetails
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UserDetails
impl Debug for UserDetails
sourceimpl Default for UserDetails
impl Default for UserDetails
sourcefn default() -> UserDetails
fn default() -> UserDetails
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for UserDetails
impl<'de> Deserialize<'de> for UserDetails
sourcefn 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
sourceimpl PartialEq<UserDetails> for UserDetails
impl PartialEq<UserDetails> for UserDetails
sourcefn eq(&self, other: &UserDetails) -> bool
fn eq(&self, other: &UserDetails) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UserDetails) -> bool
fn ne(&self, other: &UserDetails) -> bool
This method tests for !=
.
sourceimpl Serialize for UserDetails
impl Serialize for UserDetails
impl StructuralPartialEq for UserDetails
Auto Trait Implementations
impl RefUnwindSafe for UserDetails
impl Send for UserDetails
impl Sync for UserDetails
impl Unpin for UserDetails
impl UnwindSafe for UserDetails
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more