Implement some CustomDebugStringConvertible

- AppFeature
- AppProduct
- ProviderID
This commit is contained in:
Davide 2024-11-11 19:45:56 +01:00
parent fb0a9262c0
commit 1dfb013115
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
3 changed files with 10 additions and 4 deletions

View File

@ -53,8 +53,8 @@ extension AppFeature: Identifiable {
} }
} }
extension AppFeature: CustomStringConvertible { extension AppFeature: CustomDebugStringConvertible {
public var description: String { public var debugDescription: String {
rawValue rawValue
} }
} }

View File

@ -55,8 +55,8 @@ extension AppProduct {
} }
} }
extension AppProduct: CustomStringConvertible { extension AppProduct: CustomDebugStringConvertible {
public var description: String { public var debugDescription: String {
rawValue rawValue
} }
} }

View File

@ -144,6 +144,12 @@ extension OnDemandModule.Policy: LocalizableEntity {
} }
} }
extension ProviderID: CustomDebugStringConvertible {
public var debugDescription: String {
rawValue
}
}
extension VPNServer { extension VPNServer {
public var region: String { public var region: String {
[provider.countryCode.localizedAsRegionCode, provider.area] [provider.countryCode.localizedAsRegionCode, provider.area]