//
//  Created by Joachim Kret on 09/09/2019.
//  Copyright © 2019 Joachim Kret. All rights reserved.
//

import Foundation
import Shared

public struct Field<T> {
    public var value: T?
    public var error: Swift.Error?
    public var isActive: Bool
    public var isValid: Bool { return error == nil }
    public var isInvalid: Bool { return !isValid }
    public var isInactive: Bool { return !isActive }
}
