pub struct ExportDocument {
pub id: String,
pub slug: String,
pub title: Option<String>,
pub state: String,
pub format: String,
pub created_at: String,
pub updated_at: Option<String>,
pub content: String,
pub versions: Vec<ExportVersion>,
}Expand description
A single owned document in the export archive.
Fields§
§id: StringInternal document ID.
slug: StringShort URL slug (8 chars).
title: Option<String>Document title / first heading.
state: StringLifecycle state at export time: DRAFT | REVIEW | LOCKED | ARCHIVED.
format: StringDocument format: json | text | markdown.
created_at: StringISO 8601 creation timestamp.
updated_at: Option<String>ISO 8601 last-updated timestamp.
content: StringCurrent document content (UTF-8 text; decompressed inline).
versions: Vec<ExportVersion>All version snapshots.
Trait Implementations§
Source§impl Clone for ExportDocument
impl Clone for ExportDocument
Source§fn clone(&self) -> ExportDocument
fn clone(&self) -> ExportDocument
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 ExportDocument
impl Debug for ExportDocument
Source§impl<'de> Deserialize<'de> for ExportDocument
impl<'de> Deserialize<'de> for ExportDocument
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 PartialEq for ExportDocument
impl PartialEq for ExportDocument
Source§impl Serialize for ExportDocument
impl Serialize for ExportDocument
impl StructuralPartialEq for ExportDocument
Auto Trait Implementations§
impl Freeze for ExportDocument
impl RefUnwindSafe for ExportDocument
impl Send for ExportDocument
impl Sync for ExportDocument
impl Unpin for ExportDocument
impl UnsafeUnpin for ExportDocument
impl UnwindSafe for ExportDocument
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