Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The way we do this with AWS SDK in rust is by leveraging #non_exhaustive, and matching the (_@other) pattern, this is forward compatible and allows us to do something like ( _@other) if other.name() == “foo” for known cases without upgrading down the road or if the user uses an older version than our API.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: