pub struct DocumentCreate {
pub id: DocumentId,
pub kind: String,
pub key: Option<String>,
pub scope: DocumentScope,
pub history: Option<DocumentHistory>,
pub fork: Option<DocumentFork>,
}Expand description
Fields supplied when storage creates and stamps a new DocumentRecord.
Fields§
§id: DocumentIdUnique incarnation ID; never reused when the same logical document is recreated.
kind: String§key: Option<String>Family member key; absent for singleton documents.
scope: DocumentScope§history: Option<DocumentHistory>Conversation documents only.
fork: Option<DocumentFork>Conversation documents only.
Implementations§
Source§impl DocumentCreate
impl DocumentCreate
Sourcepub fn is_current_only(&self) -> bool
pub fn is_current_only(&self) -> bool
Session and task documents, and latest conversation documents, keep no history.
Trait Implementations§
Source§impl Clone for DocumentCreate
impl Clone for DocumentCreate
Source§impl Debug for DocumentCreate
impl Debug for DocumentCreate
Source§impl<'de> Deserialize<'de> for DocumentCreate
impl<'de> Deserialize<'de> for DocumentCreate
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 DocumentCreate
impl PartialEq for DocumentCreate
Source§impl Serialize for DocumentCreate
impl Serialize for DocumentCreate
impl StructuralPartialEq for DocumentCreate
Auto Trait Implementations§
impl Forget for DocumentCreate
impl Freeze for DocumentCreate
impl Move for DocumentCreate
impl RefUnwindSafe for DocumentCreate
impl Send for DocumentCreate
impl Sync for DocumentCreate
impl Unpin for DocumentCreate
impl UnsafeUnpin for DocumentCreate
impl UnwindSafe for DocumentCreate
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