sugyan / atrium

Rust libraries for Bluesky's AT Protocol services.
MIT License
230 stars 26 forks source link

api: Add `Datetime::as_str` #227

Closed str4d closed 2 months ago

str4d commented 2 months ago

The AsRef implementation exposes the chrono::DateTime, so we need a different API to expose the canonical serialized form. It can be accessed via serde::Serialize but that forces a copy which may be unnecessary in some situations.