pub struct DocumentCore {
pub title: String,
pub metadata: DocumentMetadata,
pub content: DocumentContent,
pub parent_id: Option<DocumentId>,
pub blocked_by: Vec<DocumentId>,
pub tags: Vec<Tag>,
pub archived: bool,
}
Expand description
Common document data that all document types share
Fields§
§title: String
§metadata: DocumentMetadata
§content: DocumentContent
§parent_id: Option<DocumentId>
§blocked_by: Vec<DocumentId>
§archived: bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DocumentCore
impl RefUnwindSafe for DocumentCore
impl Send for DocumentCore
impl Sync for DocumentCore
impl Unpin for DocumentCore
impl UnwindSafe for DocumentCore
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
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more