pub struct User {
pub href: String,
pub login_id: String,
pub name: String,
pub picture_link: Option<String>,
pub scoped: bool,
pub token_name: String,
pub type_: UserType,
pub workspace: WorkspaceReference,
}
Expand description
Info about the user.
JSON schema
{
"description": "Info about the user.",
"type": "object",
"required": [
"href",
"loginId",
"name",
"scoped",
"tokenName",
"type",
"workspace"
],
"properties": {
"href": {
"description": "API link to the user.",
"examples": [
"https://coda.io/apis/v1beta/whoami"
],
"type": "string",
"format": "url"
},
"loginId": {
"description": "Email address of the user.",
"examples": [
"user@example.com"
],
"type": "string"
},
"name": {
"description": "Name of the user.",
"examples": [
"John Doe"
],
"type": "string"
},
"pictureLink": {
"description": "Browser-friendly link to the user's avatar image.",
"examples": [
"https://cdn.coda.io/avatars/default_avatar.png"
],
"type": "string",
"format": "url"
},
"scoped": {
"description": "True if the token used to make this request has
restricted/scoped access to the API.",
"examples": [
false
],
"type": "boolean"
},
"tokenName": {
"description": "Returns the name of the token used for this
request.",
"examples": [
"My API token"
],
"type": "string"
},
"type": {
"description": "The type of this resource.",
"type": "string",
"enum": [
"user"
],
"x-tsType": "Type.User"
},
"workspace": {
"$ref": "#/components/schemas/WorkspaceReference"
}
},
"additionalProperties": false,
"x-schema-name": "User"
}
Fields§
§href: String
API link to the user.
login_id: String
Email address of the user.
name: String
Name of the user.
picture_link: Option<String>
Browser-friendly link to the user’s avatar image.
scoped: bool
True if the token used to make this request has restricted/scoped access to the API.
token_name: String
Returns the name of the token used for this request.
type_: UserType
The type of this resource.
workspace: WorkspaceReference
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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