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