use crate::enums::BotCommandScopeType;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
pub struct BotCommandScopeDefault {
#[serde(rename = "type", default = "default")]
scope_type: String,
}
impl BotCommandScopeDefault {
#[must_use]
pub fn new() -> Self {
Self::default()
}
}
impl Default for BotCommandScopeDefault {
#[must_use]
fn default() -> Self {
Self {
scope_type: default(),
}
}
}
fn default() -> String {
BotCommandScopeType::Default.into()
}