Result
Represents the outcome of an operation, encapsulating the result state and its associated content.
A Result
can either be a successful outcome represented by Success, or a failure represented by Failure. This interface provides utility functions to determine the specific result type and safely access the encapsulated data.
Parameters
TResult
The type of the result data when the operation is successful.