feat: add music album
This commit is contained in:
parent
566b3e5bfc
commit
3b738a55ad
12 changed files with 14904 additions and 17 deletions
|
|
@ -373,6 +373,16 @@ impl TextComponent {
|
|||
}
|
||||
}
|
||||
|
||||
impl TextComponents {
|
||||
pub fn to_opt_string(&self) -> Option<String> {
|
||||
if self.0.is_empty() {
|
||||
None
|
||||
} else {
|
||||
Some(self.to_string())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl ToString for TextComponents {
|
||||
fn to_string(&self) -> String {
|
||||
self.0.iter().map(|x| x.as_str()).collect::<String>()
|
||||
|
|
|
|||
Reference in a new issue