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