Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: Add Datetime::as_str #227

Merged
merged 1 commit into from
Sep 14, 2024
Merged

api: Add Datetime::as_str #227

merged 1 commit into from
Sep 14, 2024

Conversation

str4d
Copy link
Contributor

@str4d str4d commented Sep 13, 2024

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.

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.
@sugyan sugyan merged commit fef5653 into sugyan:main Sep 14, 2024
10 checks passed
@str4d str4d deleted the datetime-as-str branch September 14, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants