#[non_exhaustive]pub enum Purpose {
Show 36 variants
Sala,
Bonu,
Pens,
Payr,
Spsp,
Supp,
Taxs,
Vatx,
Gdds,
Scve,
Rent,
Loan,
Insu,
Elec,
Gasb,
Wter,
Phon,
Educ,
Char,
Divd,
Inte,
Govt,
Ssbe,
Bene,
Ivpt,
Rinp,
Trad,
Trea,
Cash,
Intc,
Cbff,
Cbfr,
Rrct,
Rrtp,
Othr,
Other(String),
}Expand description
A Purp/Cd value — ExternalPurpose1Code.
Placed at transaction level only, in CdtTrfTxInf/Purp or
DrctDbtTxInf/Purp. Informational: it is passed to the counterparty and
does not instruct the banks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Sala
SALA — salary payment.
Bonu
BONU — bonus payment.
Pens
PENS — pension payment.
Payr
PAYR — payroll.
Spsp
SPSP — salary/pension, savings plan.
Supp
SUPP — supplier payment.
Taxs
TAXS — tax payment.
Vatx
VATX — value-added tax payment.
Gdds
GDDS — purchase and sale of goods.
Scve
SCVE — purchase and sale of services.
Rent
RENT — rent. Not valid as a category purpose.
Loan
LOAN — loan.
Insu
INSU — insurance premium.
Elec
ELEC — electricity bill.
Gasb
GASB — gas bill.
Wter
WTER — water bill.
Phon
PHON — telephone bill.
Educ
EDUC — education.
Char
CHAR — charity payment.
Divd
DIVD — dividend. Note: the category purpose spelling is DIVI.
Inte
INTE — interest.
Govt
GOVT — government payment.
Ssbe
SSBE — social security benefit.
Bene
BENE — unemployment or disability benefit.
Ivpt
IVPT — invoice payment.
Rinp
RINP — recurring instalment payment.
Trad
TRAD — trade services.
Trea
TREA — treasury payment.
Cash
CASH — cash management transfer.
Intc
INTC — intra-company payment.
Cbff
CBFF — capital-building fringe fortune.
Mandatory in Germany when the remittance information carries Vermögenswirksame Leistungen (DFÜ-Abkommen Anlage 3).
Cbfr
CBFR — capital-building fringe fortune for retirement.
Mandatory in Germany for Altersvermögenswirksame Leistungen.
Rrct
RRCT — reimbursement of a previous credit transfer.
Rrtp
RRTP — transfer resulting from a Request to Pay.
Othr
OTHR — other.
Other(String)
A code not listed here — these are external code sets that ISO revises quarterly, so unknown codes are carried through. Direct construction and serde restoration defer validation to use; provide 1–4 uppercase ASCII letters/digits without padding.
Implementations§
Source§impl Purpose
impl Purpose
Sourcepub fn validate(&self, field: &'static str) -> Result<(), ValidationError>
pub fn validate(&self, field: &'static str) -> Result<(), ValidationError>
Validate the emitted 1–4 uppercase ASCII letters/digits.
§Errors
Returns a text or character error for a malformed Other code.
Validates its exact emitted spelling without normalization;
use string parsing when trimming/uppercasing is intended.