pub struct DocumentCreationConfig {
pub title: String,
pub description: Option<String>,
pub parent_id: Option<DocumentId>,
pub tags: Vec<Tag>,
pub phase: Option<Phase>,
}
Expand description
Configuration for creating a new document
Fields§
§title: String
§description: Option<String>
§parent_id: Option<DocumentId>
§phase: Option<Phase>
Trait Implementations§
Source§impl Clone for DocumentCreationConfig
impl Clone for DocumentCreationConfig
Source§fn clone(&self) -> DocumentCreationConfig
fn clone(&self) -> DocumentCreationConfig
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 moreAuto Trait Implementations§
impl Freeze for DocumentCreationConfig
impl RefUnwindSafe for DocumentCreationConfig
impl Send for DocumentCreationConfig
impl Sync for DocumentCreationConfig
impl Unpin for DocumentCreationConfig
impl UnwindSafe for DocumentCreationConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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