Update
An update that was performed by a persister.
-
Create and return a new
Update
for a persisted value.Declaration
Swift
public static func persisted(_ persistedValue: Value) -> Update
Parameters
persistedValue
The value that was persisted.
Return Value
The created
Update
. -
Create and return a new
Update
for a removed value.Declaration
Swift
public static func removed(defaultValue: Value) -> Update
Parameters
defaultValue
The 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