A sealed class that represents the result of a resource operation.
The type of data.
The data result of the operation.
The error that occurred during the operation, if any.
Represents an error state with optional data and an error.
Represents a loading state with optional data.
Represents a successful result with data.