tmflib 0.1.38

Interface library for processing TMF payloads
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Create Example Cost

fn main() {
    #[cfg(feature = "tmf764")]
    {
        use tmflib::tmf764::actual_cost::{ActualCost, ActualCostItem};
        use tmflib::HasDescription;

        let item = ActualCostItem::default();
        let cost = ActualCost::new("Widget Deployment Cost")
            .description("Cost associated with deploying widgets to customer sites")
            .item(item);

        dbg!(cost);
    }
}