This commit is contained in:
Wojciech Kozlowski 2023-05-21 17:22:36 +02:00
parent 0040a5599e
commit 6c3e732a40

View File

@ -17,12 +17,12 @@ use serde::{Deserialize, Serialize};
use url::Url; use url::Url;
use uuid::Uuid; use uuid::Uuid;
/// Object with trait contains a valid URL. /// An object with the [`IUrl`] trait contains a valid URL.
pub trait IUrl { pub trait IUrl {
fn url(&self) -> &str; fn url(&self) -> &str;
} }
/// Object with trait contains a [MusicBrainz /// An object with the [`IMbid`] trait contains a [MusicBrainz
/// Identifier](https://musicbrainz.org/doc/MusicBrainz_Identifier) (MBID). /// Identifier](https://musicbrainz.org/doc/MusicBrainz_Identifier) (MBID).
pub trait IMbid { pub trait IMbid {
fn mbid(&self) -> &str; fn mbid(&self) -> &str;