The variant itself would be private if possible, this is the solution closest to that.
ruma-push-gateway-api contains serializable types for the requests and responses for each endpoint in the Matrix push gateway API specification.