RSDCollectionResultObject
public struct RSDCollectionResultObject : RSDCollectionResult, Codable
RSDCollectionResultObject is used include multiple results associated with a single step or async action that
may have more that one result.
-
The identifier associated with the task, step, or asynchronous action.
Declaration
Swift
public let identifier: String -
A String that indicates the type of the result. This is used to decode the result using a
RSDFactory.Declaration
Swift
public let type: RSDResultType -
The start date timestamp for the result.
Declaration
Swift
public var startDate: Date = Date() -
The end date timestamp for the result.
Declaration
Swift
public var endDate: Date = Date() -
The list of input results associated with this step. These are generally assumed to be answers to field inputs, but they are not required to implement the
RSDAnswerResultprotocol.Declaration
Swift
public var inputResults: [RSDResult] -
Default initializer for this object.
Declaration
Swift
public init(identifier: String)Parameters
identifierThe identifier string.
-
Initialize from a
Decoder. This decoding method will use theRSDFactoryinstance associated with the decoder to decode theinputResults.Throws
DecodingErrorDeclaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder to use to decode this instance.
-
Encode the result to the given encoder.
Throws
EncodingErrorDeclaration
Swift
public func encode(to encoder: Encoder) throwsParameters
encoderThe encoder to use to encode this instance.
View on GitHub
RSDCollectionResultObject Structure Reference