| Crates.io | space_email_api |
| lib.rs | space_email_api |
| version | 0.3.2 |
| created_at | 2017-05-14 01:44:01.627334+00 |
| updated_at | 2023-08-29 22:45:37.802164+00 |
| description | A rust interface to Space Email (space.galaxybuster.net) |
| homepage | |
| repository | https://github.com/AlphaModder/space_email_api |
| max_upload_size | |
| id | 14500 |
| size | 22,340 |
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.
SpaceEmailClient, though they should be relatively self-explanatory.SpaceEmailClient::send.reqwest and tokio from alphas to release versions.hyper for reqwest, which handles a lot of stuff we previously had to think about automatically.SpaceEmailClient entirely to use std::future::Future and async-await.EmailId type to represent the id of a SpaceEmail. It implements From<u32> and Into<u32>.
SpaceEmailClient::get_by_id now takes impl Into<EmailId>.SpaceEmail::id now returns EmailId.SpaceEmailClient::star and SpaceEmailClient::unstar now take impl Into<EmailId> instead of &SpaceEmail.SpaceEmailClient::starred_emails now returns an iterator of EmailId rather than grabbing the emails automatically. This gives more flexibility to the user in handling errors, should they occur.SpaceEmailError::Encoding variant, since it can no longer occur.lazy_static and url.SpaceEmailClient.hyper's example, switch to a futures-based interface.hyper::Client in SpaceEmailClient::new. This removes the dependency on hyper-native-tls.SpaceEmailClient::get_random_with_range to SpaceEmailClient::get_random_in_range.SpaceEmailColor to SpaceEmailStyle and add Admin style.SpaceEmailClient::get_id to SpaceEmailClient::get_by_id.