pub struct AcdocaFactory { /* private fields */ }Expand description
Factory for creating ACDOCA entries from journal entries.
Handles the conversion from internal journal entry format to SAP HANA ACDOCA-compatible records.
Implementations§
Source§impl AcdocaFactory
impl AcdocaFactory
Sourcepub fn with_local_currency(self, currency: &str) -> Self
pub fn with_local_currency(self, currency: &str) -> Self
Set the local currency.
Sourcepub fn with_group_currency(self, currency: &str) -> Self
pub fn with_group_currency(self, currency: &str) -> Self
Set the group currency.
Sourcepub fn with_client(self, client: &str) -> Self
pub fn with_client(self, client: &str) -> Self
Set the SAP client.
Sourcepub fn from_journal_entry(
&self,
je: &JournalEntry,
document_number: &str,
) -> Vec<AcdocaEntry>
pub fn from_journal_entry( &self, je: &JournalEntry, document_number: &str, ) -> Vec<AcdocaEntry>
Convert a JournalEntry into ACDOCA entries.
Sourcepub fn to_bseg_entries(
&self,
je: &JournalEntry,
document_number: &str,
) -> Vec<BsegEntry>
pub fn to_bseg_entries( &self, je: &JournalEntry, document_number: &str, ) -> Vec<BsegEntry>
Convert a JournalEntry into BSEG entries.
Trait Implementations§
Source§impl Clone for AcdocaFactory
impl Clone for AcdocaFactory
Source§fn clone(&self) -> AcdocaFactory
fn clone(&self) -> AcdocaFactory
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 moreAuto Trait Implementations§
impl Freeze for AcdocaFactory
impl RefUnwindSafe for AcdocaFactory
impl Send for AcdocaFactory
impl Sync for AcdocaFactory
impl Unpin for AcdocaFactory
impl UnsafeUnpin for AcdocaFactory
impl UnwindSafe for AcdocaFactory
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> 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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.