See the full API reference here
Via cargo
, add this to your project's Cargo.toml
:
Rust
[dependencies]
spacex-api-wrapper = "0.1.0"
```Rust extern crate spacexapiwrapper; use spacexapiwrapper::SpaceXAPI;
let spacexapi = SpaceXAPI::new(None, None, None); spacexapi.getcompanyinfo() .wait() .map(|mut b| { println!("{:?}", b.text()); }); ```