pub type Result<T, E = Error> = Result<T, E>;
This type automatically converts a ClientError to a Python exception when used by a function.
ClientError
enum Result<T, E = Error> { Ok(T), Err(E), }
Contains the success value
Contains the error value