TM Forum Open API v5 · Rust

The TM Forum domain model,
as Rust you would want to write.

Model resources, call partner APIs and serve TM Forum endpoints in Rust. Enable the domain models and clients your application needs.

cargo add rutmfDomain models only — no HTTP, no TLS stack.
15
v5 APIs, end to end
610
official examples, all asserted
219
types checked against 490 schemas
1.88
MSRV, verified in CI

Create a product offering

use rutmf::api::tmf620::ProductCatalogClient;
use rutmf::core::Timestamp;
use rutmf::product::ProductOfferingCreate;

let client = ProductCatalogClient::new(
    "https://mycsp.com/tmf-api/productCatalogManagement/v5",
    transport,
)?;

// `name`, `lifecycle_status` and `last_update` are required on create.
// Leaving one out does not compile.
let offering = client.create_product_offering(
    &ProductOfferingCreate::builder()
        .name("Business Internet")
        .lifecycle_status("Active")
        .last_update(Timestamp::now())
        .build(),
).await?;

What you get

Operation-specific types

Read models and create and update builders follow the fields each TMF operation accepts.

Round-trip fidelity

Vendor extensions retain their order, timestamps keep their UTC offset, and omitted type discriminators stay absent.

Typed references

A Ref<ProductOffering> resolves to a product offering through its client.

Conditional writes

Use an ETag with If-Match to detect concurrent edits. A stale write returns HTTP 412.

Exact monetary amounts

Read invoices and credits as decimals and emit exact JSON numbers, including amounts above the binary floating-point precision limit.

Client transports and errors

Use reqwest with OAuth2 or supply a transport. Read TMF630 errors and RFC 9457 problem details directly from the client error.

Server support

Connect a resource store to TMF630 routing, filtering, paging, JSON Patch and hub notifications.

Covered APIs

Each one is implemented end to end — domain types, client, test server, conformance fixtures and schema coverage.

APIVersionResources
TMF620 Product Catalog Managementv5.0.0ProductOffering, ProductSpecification, ProductOfferingPrice, ProductCatalog, Category, ImportJob, ExportJob
TMF621 Trouble Ticketv5.0.1TroubleTicket, TroubleTicketSpecification
TMF622 Product Orderingv5.0.0ProductOrder, CancelProductOrder
TMF629 Customer Managementv5.0.1Customer
TMF632 Party Managementv5.0.0Individual, Organization
TMF669 Party Role Managementv5.0.0PartyRole (supplier, consumer, producer, business partner), PartyRoleSpecification
TMF634 Resource Catalog Managementv5.0.0ResourceCatalog, ResourceCategory, ResourceCandidate, ResourceSpecification, ImportJob, ExportJob
TMF642 Alarm Managementv5.0.1Alarm, AckAlarm, UnAckAlarm, ClearAlarm, CommentAlarm, GroupAlarm, UnGroupAlarm
TMF666 Account Managementv5.0.0Account (billing, financial, party, settlement), BillFormat, BillPresentationMedia, BillingCycleSpecification
TMF635 Product Usage Managementv5.0.0ProductUsage (rated usage, prices on the record), ExportJob
TMF678 Customer Billv5.0.0CustomerBill, CustomerBillOnDemand, AppliedCustomerBillingRate, BillCycle
TMF637 Product Inventory Managementv5.0.0Product
TMF679 Product Offering Qualificationv5.0.0CheckProductOfferingQualification, QueryProductOfferingQualification
TMF638 Service Inventory Managementv5.0.0Service
TMF639 Resource Inventory Managementv5.0.0Resource (four subclasses), ResourceGraph

TMF641 Service Ordering and TMF688 Event Management are deliberately absent — neither has a v5 release, and this crate models v5 rather than pretending otherwise.

Start where you are