pub struct Document {
pub id: String,
pub title: String,
pub classification: Option<String>,
pub lifecycle_state: Option<String>,
pub environment: Option<String>,
pub current_version: Option<DocumentVersion>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub extra: Object,
}Expand description
A document stored in the workspace.
Fields§
§id: StringThe document id (doc_...).
title: StringThe title, by default the uploaded file name.
classification: Option<String>The classification, for example private.
lifecycle_state: Option<String>The lifecycle state, for example READY.
environment: Option<String>live or test.
current_version: Option<DocumentVersion>The current immutable version.
created_at: Option<String>When the document was created (RFC 3339).
updated_at: Option<String>When the document last changed (RFC 3339).
extra: ObjectFields this SDK version does not model.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
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
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Forget for Document
impl Freeze for Document
impl Move for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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