diff --git a/src/types/entities/user.rs b/src/types/entities/user.rs index 9b619c3..0ce4c9d 100644 --- a/src/types/entities/user.rs +++ b/src/types/entities/user.rs @@ -842,14 +842,14 @@ pub struct PremiumUsageData { pub value: usize, } -impl Into for usize { - fn into(self) -> PremiumUsageData { - PremiumUsageData { value: self } +impl From for usize { + fn from(value: PremiumUsageData) -> Self { + value.value } } -impl Into for PremiumUsageData { - fn into(self) -> usize { - self.value +impl From for PremiumUsageData { + fn from(value: usize) -> Self { + PremiumUsageData { value } } }