#[non_exhaustive]pub enum JournalEntrySource {
Manual,
AutoInvoice,
AutoPayment,
AutoBill,
AutoBillPayment,
AutoInventory,
AutoWriteOff,
SystemClosing,
Import,
}Expand description
Journal entry source
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Manual
Entry created manually by a user.
AutoInvoice
Auto-generated when a customer invoice is posted.
AutoPayment
Auto-generated when a customer payment is received.
AutoBill
Auto-generated when a supplier bill is approved.
AutoBillPayment
Auto-generated when a supplier bill payment is made.
AutoInventory
Auto-generated from an inventory transaction.
AutoWriteOff
Auto-generated when an AR balance is written off.
SystemClosing
Generated automatically during period-close processing.
Import
Imported from an external system or file.
Trait Implementations§
Source§impl Clone for JournalEntrySource
impl Clone for JournalEntrySource
Source§fn clone(&self) -> JournalEntrySource
fn clone(&self) -> JournalEntrySource
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 moreimpl Copy for JournalEntrySource
Source§impl Debug for JournalEntrySource
impl Debug for JournalEntrySource
Source§impl Default for JournalEntrySource
impl Default for JournalEntrySource
Source§fn default() -> JournalEntrySource
fn default() -> JournalEntrySource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JournalEntrySource
impl<'de> Deserialize<'de> for JournalEntrySource
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JournalEntrySource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JournalEntrySource, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for JournalEntrySource
impl Display for JournalEntrySource
impl Eq for JournalEntrySource
Source§impl FromStr for JournalEntrySource
impl FromStr for JournalEntrySource
Source§impl PartialEq for JournalEntrySource
impl PartialEq for JournalEntrySource
Source§impl Serialize for JournalEntrySource
impl Serialize for JournalEntrySource
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
impl StructuralPartialEq for JournalEntrySource
Auto Trait Implementations§
impl Freeze for JournalEntrySource
impl RefUnwindSafe for JournalEntrySource
impl Send for JournalEntrySource
impl Sync for JournalEntrySource
impl Unpin for JournalEntrySource
impl UnsafeUnpin for JournalEntrySource
impl UnwindSafe for JournalEntrySource
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.