#[cfg(feature = "tmf620")]
use tmf_client::{BlockingOperations, QueryOptions, TMFClient};
#[cfg(feature = "tmf620")]
use tmflib::{HasId, HasName};
fn main() {
#[cfg(feature = "tmf620")]
{
let mut client = TMFClient::new("https://localhost", None);
let filter = QueryOptions::default()
.offset(0);
let tmf = client.tmf620().product_specification().list(Some(filter));
match tmf {
Ok(r) => {
for c in r {
println!("Entry: {} [{}]", c.get_name(), c.get_id())
}
}
Err(e) => {
println!("Error: {:?}", e)
}
}
}
}