MOD-11 check digit validator and ISO 6346 size/type decoder for intermodal shipping containers, chassis, and trailers.
Official high-performance, asynchronous Rust client library for ISO 6346 Container & Chassis Check-Digit Validator, built on the Stanza Micro-API Network. Uses pure Rustls TLS (zero C/OpenSSL dependencies) and Tokio for maximum concurrency and safety.
- 🌐 Online Interactive Sandbox: Test your inputs live
- 📚 API Reference & Schemas: View documentation on Stanza
- ⚡ Platform Overview: Explore the Stanza Developer Network
Add to your Cargo.toml:
[dependencies]
stanzaapi-container-validator = "1.0.0"
tokio = { version = "1.0", features = ["full"] }Or use cargo add:
cargo add stanzaapi-container-validatoruse stanzaapi_container_validator::ContainerValidatorClient;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Reads STANZA_API_KEY from environment automatically
// Public edge default: https://api.stanzaapi.com/container-validator
let client = ContainerValidatorClient::new(None, None);
let response = client.validate("MSKU0123456").await?;
if response.success {
println!("Verification Success: {:?}", response.data);
} else {
eprintln!("Validation Error: {:?}", response.error);
}
Ok(())
}{
"success": true,
"data": {
"valid": true,
"owner_code": "MSK",
"category": "U",
"serial_number": "012345",
"check_digit": 6
}
}- ISO 6346 Container & Chassis Check-Digit Validator Interactive Sandbox
- Stanza Developer Directory
- Source Code & Issue Tracker
MIT © Stanza — Powered by Stanza.