Clearable

public enum Clearable<Value> : Codable, Equatable, Sendable where Value : Decodable, Value : Encodable, Value : Equatable, Value : Sendable

Wrapper for a property that can be cleared. Used in UpdateRequests.

  • The value to set

    Declaration

    Swift

    case value(Value)
  • Clear current value

    Declaration

    Swift

    case clear
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws