pub struct Draft {Show 19 fields
pub id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub archived_at: Option<DateTime<Utc>>,
pub body_data: Option<Value>,
pub data: Option<Value>,
pub is_autogenerated: Option<bool>,
pub was_local_draft: Option<bool>,
pub user: Option<Box<User>>,
pub issue: Option<Box<Issue>>,
pub project: Option<Box<Project>>,
pub project_update: Option<Box<ProjectUpdate>>,
pub initiative: Option<Box<Initiative>>,
pub initiative_update: Option<Box<InitiativeUpdate>>,
pub post: Option<Box<Post>>,
pub parent_comment: Option<Box<Comment>>,
pub customer_need: Option<Box<CustomerNeed>>,
pub anchor: Option<String>,
pub team: Option<Box<Team>>,
}Expand description
A general purpose draft. Used for comments, project updates, etc.
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.
body_data: Option<Value>The text content as a Prosemirror document.
data: Option<Value>Additional properties for the draft.
is_autogenerated: Option<bool>Whether the draft was autogenerated for the user.
was_local_draft: Option<bool>INTERNAL Whether the draft was ported from a local draft.
user: Option<Box<User>>The user who created the draft.
issue: Option<Box<Issue>>The issue for which this is a draft comment.
project: Option<Box<Project>>The project for which this is a draft project update.
project_update: Option<Box<ProjectUpdate>>The project update for which this is a draft comment.
initiative: Option<Box<Initiative>>The initiative for which this is a draft initiative update.
initiative_update: Option<Box<InitiativeUpdate>>The initiative update for which this is a draft comment.
post: Option<Box<Post>>The post for which this is a draft comment.
parent_comment: Option<Box<Comment>>The comment for which this is a draft comment reply.
customer_need: Option<Box<CustomerNeed>>The customer need that this draft is referencing.
anchor: Option<String>INTERNAL Allows for multiple drafts per entity (currently constrained to Pull Requests).
team: Option<Box<Team>>The team for which this is a draft post.