freedom_api/extensions/
band.rs1use crate::error::Error;
2use freedom_models::band::Band;
3
4pub trait BandExt {
5 fn get_id(&self) -> Result<i32, Error>;
6}
7
8impl BandExt for Band {
9 fn get_id(&self) -> Result<i32, Error> {
10 super::get_id("self", &self.links)
11 }
12}