pub struct Document {Show 25 fields
pub id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub archived_at: Option<DateTime<Utc>>,
pub title: Option<String>,
pub icon: Option<String>,
pub color: Option<String>,
pub creator: Option<Box<User>>,
pub updated_by: Option<Box<User>>,
pub project: Option<Box<Project>>,
pub initiative: Option<Box<Initiative>>,
pub team: Option<Box<Team>>,
pub issue: Option<Box<Issue>>,
pub release: Option<Box<Release>>,
pub cycle: Option<Box<Cycle>>,
pub slug_id: Option<String>,
pub last_applied_template: Option<Box<Template>>,
pub hidden_at: Option<DateTime<Utc>>,
pub trashed: Option<bool>,
pub sort_order: Option<f64>,
pub comments: Option<Box<CommentConnection>>,
pub content: Option<String>,
pub content_state: Option<String>,
pub document_content_id: Option<String>,
pub url: Option<String>,
}Expand description
A document that can be attached to different entities.
Fields§
§id: Option<String>The unique identifier of the entity.
created_at: Option<DateTime<Utc>>The time at which the entity was created.
updated_at: Option<DateTime<Utc>>The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn’t been updated after creation.
archived_at: Option<DateTime<Utc>>The time at which the entity was archived. Null if the entity has not been archived.
title: Option<String>The document title.
icon: Option<String>The icon of the document.
color: Option<String>The color of the icon.
creator: Option<Box<User>>The user who created the document.
updated_by: Option<Box<User>>The user who last updated the document.
project: Option<Box<Project>>The project that the document is associated with.
initiative: Option<Box<Initiative>>The initiative that the document is associated with.
team: Option<Box<Team>>Internal The team that the document is associated with.
issue: Option<Box<Issue>>The issue that the document is associated with.
release: Option<Box<Release>>Internal The release that the document is associated with.
cycle: Option<Box<Cycle>>Internal The cycle that the document is associated with.
slug_id: Option<String>The document’s unique URL slug.
last_applied_template: Option<Box<Template>>The last template that was applied to this document.
The time at which the document was hidden. Null if the entity has not been hidden.
trashed: Option<bool>A flag that indicates whether the document is in the trash bin.
sort_order: Option<f64>The order of the item in the resources list.
comments: Option<Box<CommentConnection>>Comments associated with the document.
content: Option<String>The documents content in markdown format.
content_state: Option<String>Internal The documents content as YJS state.
document_content_id: Option<String>The ID of the document content associated with the document.
url: Option<String>The canonical url for the document.