Update
An update that was performed by a persister.
-
Create and return a new
Updatefor a persisted value.Declaration
Swift
public static func persisted(_ persistedValue: Value) -> UpdateParameters
persistedValueThe value that was persisted.
Return Value
The created
Update. -
Create and return a new
Updatefor a removed value.Declaration
Swift
public static func removed(defaultValue: Value) -> UpdateParameters
defaultValueThe default value that will be falled back to.
Return Value
The created
Update. -
The new value, after the update. If the value was removed this will be the default value.
Declaration
Swift
public let newValue: Value -
The event that triggered the update.
Declaration
Swift
public let event: Event
View on GitHub
Update Structure Reference