AcceptableByConfigurationElement
public protocol AcceptableByConfigurationElement
Type of an object that can be used as a configuration element.
-
Initializer taking a value from a configuration to create an element of
Self.Declaration
Swift
init(fromAny value: Any, context ruleID: String) throws(Issue)Parameters
valueValue from a configuration.
ruleIDThe rule’s identifier in which context the configuration parsing runs.
-
Make the object an option.
Declaration
Swift
func asOption() -> OptionTypeReturn Value
Option representing the object.
-
asDescription(with:Default implementation) Make the object a description.
Default Implementation
Declaration
Swift
func asDescription(with key: String) -> RuleConfigurationDescriptionParameters
keyName of the option to be put into the description.
Return Value
Configuration description of this object.
-
apply(_:Default implementationruleID: ) Update the object.
Default Implementation
Declaration
Swift
mutating func apply(_ value: Any, ruleID: String) throws(Issue)Parameters
valueNew underlying data for the object.
ruleIDThe rule’s identifier in which context the configuration parsing runs.
-
asOption()Default implementationDefault Implementation
Declaration
Swift
func asOption() -> OptionType -
asDescription(with:Default implementation) Default Implementation
Declaration
Swift
func asDescription(with key: String) -> RuleConfigurationDescription -
apply(_:Default implementationruleID: ) Default Implementation
Declaration
Swift
mutating func apply(_ value: Any, ruleID _: String) throws(Issue) -
init(fromAny:Default implementationcontext: ) Default Implementation
Declaration
Swift
init(fromAny _: Any, context _: String) throws(Issue)
View on GitHub
Install in Dash