//! Contains the implementation of [`ApplicationSettingDto`].
use crate::model::entity::ApplicationSetting;
use super::ApplicationSettingDto;
impl From<ApplicationSetting> for ApplicationSettingDto {
fn from(setting: ApplicationSetting) -> Self {
Self {
id: setting.id,
key: setting.key,
value: setting.value,
}
}
}
impl<T> From<(T, ApplicationSetting)> for ApplicationSettingDto {
fn from((_, setting): (T, ApplicationSetting)) -> Self {
Self::from(setting)
}
}