pub struct AchEntry { /* private fields */ }Expand description
Lightweight ACH entry metadata composed from validated primitives.
Implementations§
Source§impl AchEntry
impl AchEntry
Sourcepub const fn new(
standard_entry_class: AchStandardEntryClass,
transaction_code: AchTransactionCode,
trace_number: AchTraceNumber,
company_id: AchCompanyId,
individual_id: AchIndividualId,
) -> Self
pub const fn new( standard_entry_class: AchStandardEntryClass, transaction_code: AchTransactionCode, trace_number: AchTraceNumber, company_id: AchCompanyId, individual_id: AchIndividualId, ) -> Self
Creates ACH entry metadata with no addenda indicator attached.
Sourcepub const fn standard_entry_class(&self) -> AchStandardEntryClass
pub const fn standard_entry_class(&self) -> AchStandardEntryClass
Returns the standard entry class.
Sourcepub const fn transaction_code(&self) -> AchTransactionCode
pub const fn transaction_code(&self) -> AchTransactionCode
Returns the transaction code.
Sourcepub const fn trace_number(&self) -> &AchTraceNumber
pub const fn trace_number(&self) -> &AchTraceNumber
Returns the trace number.
Sourcepub const fn company_id(&self) -> &AchCompanyId
pub const fn company_id(&self) -> &AchCompanyId
Returns the company identifier.
Sourcepub const fn individual_id(&self) -> &AchIndividualId
pub const fn individual_id(&self) -> &AchIndividualId
Returns the individual identifier.
Sourcepub const fn addenda_indicator(&self) -> AchAddendaIndicator
pub const fn addenda_indicator(&self) -> AchAddendaIndicator
Returns the addenda indicator.
Sourcepub const fn with_addenda_indicator(
self,
addenda_indicator: AchAddendaIndicator,
) -> Self
pub const fn with_addenda_indicator( self, addenda_indicator: AchAddendaIndicator, ) -> Self
Sets the addenda indicator.
Trait Implementations§
impl Eq for AchEntry
impl StructuralPartialEq for AchEntry
Auto Trait Implementations§
impl Freeze for AchEntry
impl RefUnwindSafe for AchEntry
impl Send for AchEntry
impl Sync for AchEntry
impl Unpin for AchEntry
impl UnsafeUnpin for AchEntry
impl UnwindSafe for AchEntry
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