protocol TraitEncodableBasic interface for entities that can be encoded as Traits.
-
The trait identifier.
Declaration
Swift
static var identifier: String { get } -
Writes this object to the given
TraitEncoder. ThrowsHomeError.encodingFailedif the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws -
Extension methodidentifier
Returns the Trait Identifier for this instance.
Declaration
Swift
var identifier: String { get }