Skip to main content

get_quote/
get_quote.rs

1use tmf_client::common::tmf_error::TMFError;
2#[cfg(feature = "tmf648")]
3use tmf_client::TMFClient;
4
5fn main() -> Result<(), TMFError> {
6    #[cfg(feature = "tmf648")]
7    {
8        use tmf_client::BlockingOperations;
9
10        let mut client = TMFClient::new("https://localhost", None);
11
12        let quotes = client.tmf648().quote().list(None)?;
13
14        for i in quotes {
15            use tmflib::{HasDescription, HasName};
16
17            println!("Name: {}, \tDesc: {}", &i.get_name(), i.get_description());
18        }
19    }
20
21    Ok(())
22}