pub struct CreateJournalEntry {
pub entry_date: NaiveDate,
pub entry_type: Option<JournalEntryType>,
pub description: String,
pub lines: Vec<CreateJournalEntryLine>,
pub source_document_type: Option<String>,
pub source_document_id: Option<Uuid>,
pub auto_post: Option<bool>,
}Expand description
Input for creating a journal entry with lines
Fields§
§entry_date: NaiveDate§entry_type: Option<JournalEntryType>§description: String§lines: Vec<CreateJournalEntryLine>§source_document_type: Option<String>§source_document_id: Option<Uuid>§auto_post: Option<bool>Trait Implementations§
Source§impl Clone for CreateJournalEntry
impl Clone for CreateJournalEntry
Source§fn clone(&self) -> CreateJournalEntry
fn clone(&self) -> CreateJournalEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateJournalEntry
impl Debug for CreateJournalEntry
Source§impl<'de> Deserialize<'de> for CreateJournalEntry
impl<'de> Deserialize<'de> for CreateJournalEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateJournalEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateJournalEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateJournalEntry
impl Serialize for CreateJournalEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CreateJournalEntry
impl RefUnwindSafe for CreateJournalEntry
impl Send for CreateJournalEntry
impl Sync for CreateJournalEntry
impl Unpin for CreateJournalEntry
impl UnsafeUnpin for CreateJournalEntry
impl UnwindSafe for CreateJournalEntry
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