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 · 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 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