Expand description
JSON-LD structured data injection plugin.
Modules§
- iso20022
- ISO 20022 / banking domain JSON-LD types.
Structs§
- Bank
Account - A bank account record. Schema.org base type:
BankAccount. - Financial
Product - A financial product (loan, deposit, derivative). Schema.org base
type:
FinancialProduct. - Financial
Transaction - A financial transaction. Schema.org base type:
MoneyTransfer. - Iso20022
Schema OrgError - Validation error raised by the bundled Schema.org subset validator.
- Json
LdConfig - Configuration for the JSON-LD structured data plugin.
- Json
LdPlugin - Injects JSON-LD structured data into HTML files.
- Json
LdValidation Error - A single validation failure against a JSON-LD block.
- Monetary
Amount - ISO 4217 monetary amount.
- Payment
Instrument - A payment instrument (card, transfer, direct debit). Schema.org
base type:
PaymentService. - Regulated
Financial Institution - A regulated financial institution. Schema.org base type:
BankOrCreditUnion.
Enums§
- Iso20022
Dispatch Error - Errors that can occur when interpreting an
iso20022:frontmatter block. These do NOT abort the build — they cause the block to be skipped with a warning. - Iso20022
Entity - Tagged union dispatched from the
iso20022.typefrontmatter key. - Validation
Outcome - Result of an ISO 20022 field validation. Errors are warnings, not hard failures — the build continues regardless.
Functions§
- iso20022_
from_ frontmatter - Parses the
iso20022:frontmatter block into a typed entity. - iso20022_
log_ first_ use - Emits an info-level log pointing at the iso20022 docs URL, exactly once per process. Idempotent.
- iso20022_
warn_ invalid_ fields - Walks every IBAN/BIC inside an entity and emits
log::warn!for anything that fails validation. Thepage_labelis included in the warning so site authors can locate the offending page. - validate_
bic - Validates a BIC (ISO 9362) by length + alphanumeric layout.
- validate_
iban - crate dependency-free for the ISO validator.
- validate_
iso20022_ schema_ org - Validates an ISO 20022 JSON-LD blob against the Schema.org subset.
- validate_
jsonld - Walks an HTML string, extracts every
<script type="application/ld+json">block, parses it as JSON, and validates required fields per schema.org@type.