Add From<Vec<GuildFeatures>> impl for GuildFeaturesList
This commit is contained in:
parent
4d75aa89c9
commit
97f10aaa61
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue