pub fn invalid_input(reason: impl Into<String>) -> TrustformersError
Helper function for invalid input errors