pub struct AchIndividualId(/* private fields */);Expand description
A conservatively validated ACH individual identifier.
Implementations§
Source§impl AchIndividualId
impl AchIndividualId
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, AchError>
pub fn new(value: impl AsRef<str>) -> Result<Self, AchError>
Creates an ACH individual identifier from 1 to 15 conservative ASCII characters.
§Errors
Returns AchError::EmptyIndividualId when the trimmed input is empty,
AchError::IndividualIdTooLong when the input is longer than 15 bytes, and
AchError::InvalidIndividualIdCharacter when the input contains unsupported characters.
Trait Implementations§
Source§impl AsRef<str> for AchIndividualId
impl AsRef<str> for AchIndividualId
Source§impl Clone for AchIndividualId
impl Clone for AchIndividualId
Source§fn clone(&self) -> AchIndividualId
fn clone(&self) -> AchIndividualId
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 moreSource§impl Debug for AchIndividualId
impl Debug for AchIndividualId
Source§impl Display for AchIndividualId
impl Display for AchIndividualId
Source§impl FromStr for AchIndividualId
impl FromStr for AchIndividualId
Source§impl Hash for AchIndividualId
impl Hash for AchIndividualId
Source§impl Ord for AchIndividualId
impl Ord for AchIndividualId
Source§fn cmp(&self, other: &AchIndividualId) -> Ordering
fn cmp(&self, other: &AchIndividualId) -> 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
Source§impl PartialEq for AchIndividualId
impl PartialEq for AchIndividualId
Source§impl PartialOrd for AchIndividualId
impl PartialOrd for AchIndividualId
impl Eq for AchIndividualId
impl StructuralPartialEq for AchIndividualId
Auto Trait Implementations§
impl Freeze for AchIndividualId
impl RefUnwindSafe for AchIndividualId
impl Send for AchIndividualId
impl Sync for AchIndividualId
impl Unpin for AchIndividualId
impl UnsafeUnpin for AchIndividualId
impl UnwindSafe for AchIndividualId
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