Files
pkurchatov 149b80a37f Sendable DivData
commit_hash:ae183ed8d06f2c89c8693f59bedba49752638377
2025-01-16 16:25:07 +03:00

40 lines
870 B
Swift

// Generated code. Do not modify.
import CommonCore
import Foundation
import Serialization
public final class EntityWithStringEnumProperty: Sendable {
@frozen
public enum Property: String, CaseIterable, Sendable {
case first = "first"
case second = "second"
}
public static let type: String = "entity_with_string_enum_property"
public let property: Expression<Property>
public func resolveProperty(_ resolver: ExpressionResolver) -> Property? {
resolver.resolveEnum(property)
}
init(
property: Expression<Property>
) {
self.property = property
}
}
#if DEBUG
extension EntityWithStringEnumProperty: Equatable {
public static func ==(lhs: EntityWithStringEnumProperty, rhs: EntityWithStringEnumProperty) -> Bool {
guard
lhs.property == rhs.property
else {
return false
}
return true
}
}
#endif