DefaultValuePersistOption
public struct DefaultValuePersistOption : OptionSet
An option to persist the default value when returned by a Persister
.
-
Persist the default value when the stored value is
nil
.Declaration
Swift
public static let persistWhenNil: DefaultValuePersistOption
-
Persist the default value when an error is thrown when trying to retrieve a value.
Declaration
Swift
public static let persistOnError: DefaultValuePersistOption
-
Persist the default value when the
Persister
returnsnil
or throws and error.Declaration
Swift
public static let all: DefaultValuePersistOption
-
The raw value of the option set.
Declaration
Swift
public let rawValue: Int
-
Create a new
DefaultValuePersistOption
with the specified raw value.Declaration
Swift
public init(rawValue: Int)
Parameters
rawValue
The raw value