Skip to content

Commit

Permalink
fix: Set descriptions everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
rruckley committed Feb 11, 2025
1 parent 62a45ce commit 72bed84
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/service_to_product_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@
use tmflib::tmf620::product_specification::ProductSpecification;
use tmflib::tmf633::service_specification::ServiceSpecification;
use tmflib::tmf633::characteristic_specification::CharacteristicSpecification;
use tmflib::HasDescription;

fn main() {

let char1 = CharacteristicSpecification::new("Char1")
let char1 = CharacteristicSpecification::new("Bandwidth")
.optional()
.description("Sample Characteristic");
.description("Bandwidth in MB/s");

let char2 = CharacteristicSpecification::new("Weight")
.mandatory()
.description("Weight in kg of item");

let mut service_spec = ServiceSpecification::new("Service Specification");
let mut service_spec = ServiceSpecification::new("Internet Service")
.description("Standard Internet Service");
service_spec.add_char(char1);
service_spec.add_char(char2);

Expand Down

0 comments on commit 72bed84

Please sign in to comment.