Enum AchAddendaIndicator
pub enum AchAddendaIndicator {
NoAddenda,
Addenda,
}Expand description
ACH addenda indicator vocabulary.
Variants§
Implementations§
§impl AchAddendaIndicator
impl AchAddendaIndicator
pub const fn has_addenda(self) -> bool
pub const fn has_addenda(self) -> bool
Returns whether addenda are present.
pub fn from_code(
value: impl AsRef<str>,
) -> Result<AchAddendaIndicator, AchError>
pub fn from_code( value: impl AsRef<str>, ) -> Result<AchAddendaIndicator, AchError>
Creates an addenda indicator from 0 or 1.
§Errors
Returns AchError::InvalidAddendaIndicator when the value is not 0 or 1.
Trait Implementations§
§impl Clone for AchAddendaIndicator
impl Clone for AchAddendaIndicator
§fn clone(&self) -> AchAddendaIndicator
fn clone(&self) -> AchAddendaIndicator
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 more§impl Debug for AchAddendaIndicator
impl Debug for AchAddendaIndicator
§impl Display for AchAddendaIndicator
impl Display for AchAddendaIndicator
§impl FromStr for AchAddendaIndicator
impl FromStr for AchAddendaIndicator
§impl Hash for AchAddendaIndicator
impl Hash for AchAddendaIndicator
§impl Ord for AchAddendaIndicator
impl Ord for AchAddendaIndicator
§fn cmp(&self, other: &AchAddendaIndicator) -> Ordering
fn cmp(&self, other: &AchAddendaIndicator) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for AchAddendaIndicator
impl PartialEq for AchAddendaIndicator
§impl PartialOrd for AchAddendaIndicator
impl PartialOrd for AchAddendaIndicator
impl Copy for AchAddendaIndicator
impl Eq for AchAddendaIndicator
impl StructuralPartialEq for AchAddendaIndicator
Auto Trait Implementations§
impl Freeze for AchAddendaIndicator
impl RefUnwindSafe for AchAddendaIndicator
impl Send for AchAddendaIndicator
impl Sync for AchAddendaIndicator
impl Unpin for AchAddendaIndicator
impl UnsafeUnpin for AchAddendaIndicator
impl UnwindSafe for AchAddendaIndicator
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