Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Structure

Extend

A wrapper around a simple [String: Any] storage dictionary used to implement Extendable.
struct Extend

Overview

final cass MyType: Extendable { ... }
extension MyType {
    var foo: Int {
        get { return extend.get(\MyType.foo, default: 0) }
        set { extend.set(\MyType.foo, to: newValue) }
    }
}

Note

Extend conforms to Codable, but will yield an empty dictionary. Extensions are used for convenience and should not be encoded or decoded.

Topics

Initializers

Instance Properties

Instance Methods

Subscripts

Relationships

Conforms To

  • Swift.Decodable
  • Swift.Encodable
  • Swift.ExpressibleByDictionaryLiteral