get_product_offering/
get_product_offering.rs1#[cfg(feature = "tmf620")]
4use tmf_client::{BlockingOperations, QueryOptions, TMFClient};
5#[cfg(feature = "tmf620")]
6use tmflib::{HasId, HasName};
7
8fn main() {
9 #[cfg(feature = "tmf620")]
10 {
11 let mut client = TMFClient::new("https://localhost", None);
12 let filter = QueryOptions::default()
13 .offset(0);
15 let tmf = client.tmf620().product_offering().list(Some(filter));
16 match tmf {
17 Ok(r) => {
18 for c in r {
20 println!("Entry: {} [{}]", c.get_name(), c.get_id())
21 }
22 }
23 Err(e) => {
24 println!("Error: {:?}", e)
25 }
26 }
27 }
28}