pub struct WorkspaceUser {Show 13 fields
pub doc_collaborator_count: Option<f64>,
pub docs_last_active_at: Option<NaiveDate>,
pub email: String,
pub last_active_at: Option<NaiveDate>,
pub name: String,
pub owned_docs: Option<f64>,
pub picture_url: Option<String>,
pub registered_at: DateTime<Utc>,
pub role: WorkspaceUserRole,
pub role_changed_at: Option<DateTime<Utc>>,
pub total_doc_collaborators_last90_days: Option<f64>,
pub total_docs: Option<f64>,
pub total_docs_last_active_at: Option<NaiveDate>,
}
Expand description
Metadata of a workspace user.
JSON schema
{
"description": "Metadata of a workspace user.",
"type": "object",
"required": [
"email",
"name",
"registeredAt",
"role"
],
"properties": {
"docCollaboratorCount": {
"description": "Number of collaborators that have interacted with
docs owned by the user in the last 90 days.",
"examples": [
2
],
"type": "number"
},
"docsLastActiveAt": {
"description": "Date when anyone last accessed a doc that the user
owns in this workspace.",
"examples": [
"2018-04-11"
],
"type": "string",
"format": "date"
},
"email": {
"description": "Email of the user.",
"examples": [
"hello@coda.io"
],
"type": "string"
},
"lastActiveAt": {
"description": "Date when the user last took an action in any
workspace.",
"examples": [
"2018-04-11"
],
"type": "string",
"format": "date"
},
"name": {
"description": "Name of the user.",
"examples": [
"Sally Jane"
],
"type": "string"
},
"ownedDocs": {
"description": "Number of docs the user owns in this workspace.",
"examples": [
2
],
"type": "number"
},
"pictureUrl": {
"description": "Picture url of the user.",
"examples": [
"codahosted.io/123"
],
"type": "string",
"format": "url"
},
"registeredAt": {
"description": "Timestamp for when the user registered in this
workspace",
"examples": [
"2018-04-11T00:18:57.946Z"
],
"type": "string",
"format": "date-time"
},
"role": {
"$ref": "#/components/schemas/WorkspaceUserRole"
},
"roleChangedAt": {
"description": "Timestamp for when the user's role last changed in
this workspace.",
"examples": [
"2018-04-11T00:18:57.946Z"
],
"type": "string",
"format": "date-time"
},
"totalDocCollaboratorsLast90Days": {
"description": "Number of unique users that have viewed any doc the
user owns, manages, or has added pages to in the last 90 days.",
"examples": [
2
],
"type": "number"
},
"totalDocs": {
"description": "Number of docs the user owns, manages, or to which
they have added pages in the last 90 days.",
"examples": [
2
],
"type": "number"
},
"totalDocsLastActiveAt": {
"description": "Date when anyone last accessed a doc the member
owns or contributed to.",
"examples": [
"2018-04-11"
],
"type": "string",
"format": "date"
}
},
"additionalProperties": false,
"x-schema-name": "WorkspaceUser"
}
Fields§
§doc_collaborator_count: Option<f64>
§docs_last_active_at: Option<NaiveDate>
Date when anyone last accessed a doc that the user owns in this workspace.
email: String
Email of the user.
last_active_at: Option<NaiveDate>
Date when the user last took an action in any workspace.
name: String
Name of the user.
owned_docs: Option<f64>
§picture_url: Option<String>
Picture url of the user.
registered_at: DateTime<Utc>
Timestamp for when the user registered in this workspace
role: WorkspaceUserRole
§role_changed_at: Option<DateTime<Utc>>
Timestamp for when the user’s role last changed in this workspace.
total_doc_collaborators_last90_days: Option<f64>
§total_docs: Option<f64>
§total_docs_last_active_at: Option<NaiveDate>
Date when anyone last accessed a doc the member owns or contributed to.
Trait Implementations§
Source§impl Clone for WorkspaceUser
impl Clone for WorkspaceUser
Source§fn clone(&self) -> WorkspaceUser
fn clone(&self) -> WorkspaceUser
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WorkspaceUser
impl Debug for WorkspaceUser
Source§impl<'de> Deserialize<'de> for WorkspaceUser
impl<'de> Deserialize<'de> for WorkspaceUser
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
Source§impl From<&WorkspaceUser> for WorkspaceUser
impl From<&WorkspaceUser> for WorkspaceUser
Source§fn from(value: &WorkspaceUser) -> Self
fn from(value: &WorkspaceUser) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WorkspaceUser
impl RefUnwindSafe for WorkspaceUser
impl Send for WorkspaceUser
impl Sync for WorkspaceUser
impl Unpin for WorkspaceUser
impl UnwindSafe for WorkspaceUser
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