get_individual/
get_individual.rs1use 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 mut client = TMFClient::new("https://localhost", None);
12
13 let individuals = client.tmf632().individual().list(None)?;
14
15 for i in individuals {
16 println!(
17 "Name: {} Id: {}, Gender: {}",
18 i.get_name(),
19 i.get_id(),
20 i.gender.unwrap_or("Gender not set".to_string())
21 );
22 }
23 }
24
25 Ok(())
26}