A Rust (via hyper) interface to space email, "an indirect communication platform that allows for a unique exchange of conversation over space and time."
Documentation is a work in progress.
Access to space email is facilitated by the space_email_api::SpaceEmailClient struct. Its methods are relatively self-explanatory if you have used Space Email before. You may refer to its documentation for details.
- More tests and debugging support.
- Documentation on types other than
SpaceEmailClient, though they should be relatively self-explanatory.
- 0.3.2 Update several dependencies and prevent stray PHP warning in the response from breaking
SpaceEmailClient::send. - 0.3.1 Update
reqwestandtokiofrom alphas to release versions. - 0.3.0: Async-await support!
- Drop
hyperforreqwest, which handles a lot of stuff we previously had to think about automatically. - Rewrite
SpaceEmailCliententirely to usestd::future::Futureand async-await. - Add
EmailIdtype to represent the id of aSpaceEmail. It implementsFrom<u32>andInto<u32>.SpaceEmailClient::get_by_idnow takesimpl Into<EmailId>.SpaceEmail::idnow returnsEmailId.SpaceEmailClient::starandSpaceEmailClient::unstarnow takeimpl Into<EmailId>instead of&SpaceEmail.SpaceEmailClient::starred_emailsnow returns an iterator ofEmailIdrather than grabbing the emails automatically. This gives more flexibility to the user in handling errors, should they occur.
- Remove
SpaceEmailError::Encodingvariant, since it can no longer occur. - Remove dependencies on
lazy_staticandurl. - Document the methods of
SpaceEmailClient.
- Drop
- 0.2.0: I'm back and I know rust waaaaay better! Breaking changes abound.
- Following
hyper's example, switch to a futures-based interface. - Have the user supply their own
hyper::ClientinSpaceEmailClient::new. This removes the dependency onhyper-native-tls. - Properly add standard traits to data types now that I understand things.
- Add support for serde on data types, gated behind a feature.
- Add support for premium accounts, finally! Colors and other ranges should now work properly (when logged in).
- Rename
SpaceEmailClient::get_random_with_rangetoSpaceEmailClient::get_random_in_range. - Rename
SpaceEmailColortoSpaceEmailStyleand addAdminstyle. - Rename
SpaceEmailClient::get_idtoSpaceEmailClient::get_by_id. - Add an (untested!) interface for starred emails.
- Update dependencies.
- Following
- 0.1.1: Add Hash, Eq, etc. where appropriate and refactor accessibility of SpaceEmail fields to enforce their guarantees.