freedom_models/
lib.rs

1#![doc = include_str!("../README.md")]
2
3pub mod account;
4pub mod azel;
5pub mod band;
6pub mod error;
7#[cfg(feature = "serde")]
8pub mod pagination;
9pub mod satellite;
10pub mod satellite_configuration;
11pub mod site;
12pub mod task;
13pub mod user;
14#[cfg(feature = "serde")]
15pub mod utils;
16
17use std::collections::HashMap;
18
19/// A trait for navigating the Hateoas structure of Freedom models
20pub trait Hateoas {
21    fn get_links(&self) -> &HashMap<String, url::Url>;
22
23    fn get_links_mut(&mut self) -> &mut HashMap<String, url::Url>;
24}