Result
public enum Result<Model>
Undocumented
-
Success wraps a model and an optional pagination
Declaration
Swift
case success(Model, Pagination?)
-
Failure wraps an ErrorType
Declaration
Swift
case failure(Error)
-
Convenience getter for the value.
Declaration
Swift
public var value: Model? { get }
-
Convenience getter for the pagination.
Declaration
Swift
public var pagination: Pagination? { get }
-
Convenience getter for the error.
Declaration
Swift
public var error: Error? { get }
-
Convenience getter to test whether the result is an error or not.
Declaration
Swift
public var isError: Bool { get }