pub struct DocumentContentDraft {
pub id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub archived_at: Option<DateTime<Utc>>,
pub document_content: Option<DocumentContent>,
pub document_content_id: Option<String>,
pub content_state: Option<String>,
pub user: Option<User>,
pub user_id: Option<String>,
}Expand description
A draft revision of document content, pending user review. Each user can have at most one draft per document content. Drafts are seeded from the live document state and stored as base64-encoded Yjs state updates, allowing independent editing without affecting the published document until the user explicitly applies their changes.
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.
document_content: Option<DocumentContent>The document content that this draft is a revision of.
document_content_id: Option<String>The identifier of the document content that this draft is a revision of.
content_state: Option<String>The draft content state as a base64-encoded Yjs state update. This represents the user’s in-progress edits that have not yet been applied to the live document.
user: Option<User>The user who created or owns this draft.
user_id: Option<String>The identifier of the user who owns this draft.
Trait Implementations§
Source§impl Clone for DocumentContentDraft
impl Clone for DocumentContentDraft
Source§fn clone(&self) -> DocumentContentDraft
fn clone(&self) -> DocumentContentDraft
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more