Struct asana::models::user_response::UserResponse
source · [−]pub struct UserResponse {
pub gid: Option<String>,
pub resource_type: Option<String>,
pub name: Option<String>,
pub email: Option<String>,
pub photo: Option<Box<UserResponseAllOfPhoto>>,
pub workspaces: Option<Vec<WorkspaceCompact>>,
}
Fields
gid: Option<String>
Globally unique identifier of the resource, as a string.
resource_type: Option<String>
The base type of this resource.
name: Option<String>
Read-only except when same user as requester. The user’s name.
email: Option<String>
The user’s email address.
photo: Option<Box<UserResponseAllOfPhoto>>
workspaces: Option<Vec<WorkspaceCompact>>
Workspaces and organizations this user may access. Note\: The API will only return workspaces and organizations that also contain the authenticated user.
Implementations
sourceimpl UserResponse
impl UserResponse
pub fn new() -> UserResponse
Trait Implementations
sourceimpl Clone for UserResponse
impl Clone for UserResponse
sourcefn clone(&self) -> UserResponse
fn clone(&self) -> UserResponse
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 moresourceimpl Debug for UserResponse
impl Debug for UserResponse
sourceimpl<'de> Deserialize<'de> for UserResponse
impl<'de> Deserialize<'de> for UserResponse
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<UserResponse> for UserResponse
impl PartialEq<UserResponse> for UserResponse
sourcefn eq(&self, other: &UserResponse) -> bool
fn eq(&self, other: &UserResponse) -> bool
sourceimpl Serialize for UserResponse
impl Serialize for UserResponse
impl StructuralPartialEq for UserResponse
Auto Trait Implementations
impl RefUnwindSafe for UserResponse
impl Send for UserResponse
impl Sync for UserResponse
impl Unpin for UserResponse
impl UnwindSafe for UserResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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