Result
public enum Result<T>
Service request results.
Since
1.2.0-
Result for Success, with the expected object.
Declaration
Swift
case success(T) -
Result for Failure, with the error message.
Declaration
Swift
case failure(Error) -
Returns the associated data if the result is a success,
nilotherwise.Declaration
Swift
public var data: T? { get } -
Returns the associated error value if the result is a failure,
nilotherwise.Declaration
Swift
public var error: Error? { get }
View on GitHub