freedom_api/extensions/
band.rs

1
2
3
4
5
6
7
8
9
10
11
12
use crate::error::Error;
use freedom_models::band::Band;

pub trait BandExt {
    fn get_id(&self) -> Result<i32, Error>;
}

impl BandExt for Band {
    fn get_id(&self) -> Result<i32, Error> {
        super::get_id("self", &self.links)
    }
}