A Result can be either a success (Ok) or a failure (Err) response. This union type is used for functions that can either return a valid value or an error, promoting explicit error handling.
The type of the successful value.
The type of the error value.
A Result can be either a success (Ok) or a failure (Err) response. This union type is used for functions that can either return a valid value or an error, promoting explicit error handling.