Add From<Vec<GuildFeatures>> impl for GuildFeaturesList

This commit is contained in:
Quat3rnion 2024-06-04 00:21:38 -04:00
parent 4d75aa89c9
commit 97f10aaa61
1 changed files with 6 additions and 0 deletions

View File

@ -376,6 +376,12 @@ impl FromStr for GuildFeatures {
} }
} }
impl From<Vec<GuildFeatures>> for GuildFeaturesList {
fn from(features: Vec<GuildFeatures>) -> GuildFeaturesList {
Self(features)
}
}
impl GuildFeatures { impl GuildFeatures {
pub fn to_str(&self) -> &'static str { pub fn to_str(&self) -> &'static str {
match *self { match *self {