1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::library::artist::{Artist, ArtistId}; impl Artist { #[must_use] pub fn name(&self) -> &str { &self.name } #[must_use] pub fn id(&self) -> ArtistId { self.id } }