get_customer/get_customer.rs
1//! Get Customer Exfample
2
3use tmf_client::common::tmf_error::TMFError;
4#[cfg(feature = "blocking")]
5use tmf_client::{BlockingOperations, TMFClient};
6
7fn main() -> Result<(), TMFError> {
8 #[cfg(feature = "blocking")]
9 {
10 use tmflib::{HasId, HasName};
11 let clients = TMFClient::new("https://localhost", None)
12 .tmf629()
13 .customer()
14 .list(None)?;
15
16 for c in clients {
17 println!("Name: {} Id: {}", c.get_name(), c.get_id());
18 }
19 }
20
21 Ok(())
22}