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

Add support for time crate #228

Merged
merged 1 commit into from
Jul 24, 2022
Merged

Add support for time crate #228

merged 1 commit into from
Jul 24, 2022

Conversation

juhaku
Copy link
Owner

@juhaku juhaku commented Jul 24, 2022

Add support for time crate for Components and IntoParams parameters.
This add support for OffsetDateTime, Date, PrimitiveDateTime and
Duration types and they are resolved as String by default.
OffsetDateTime and PrimitiveDateTime uses date-time format and
Date uses date format. Duration does not have default format.

Users wishing to use alternative representations for above time crate
types they need to override type with #[component(value_type = ...)]
property.

closes #209

@juhaku juhaku force-pushed the feature-support-time-crate2 branch from 8e2b35d to 662d8fb Compare July 24, 2022 17:56
Add support for time crate for `Component`s and `IntoParams` parameters.
This add support for `OffsetDateTime`, `Date`, `PrimitiveDateTime` and
`Duration` types and they are resolved as `String` by default.
`OffsetDateTime` and `PrimitiveDateTime` uses `date-time` format and
`Date` uses `date` format. `Duration` does not have default format.

Users wishing to use alternative representations for above `time` crate
types they need to override type with `#[component(value_type = ...)]`
property.
@juhaku juhaku force-pushed the feature-support-time-crate2 branch from 662d8fb to de43eef Compare July 24, 2022 18:05
@juhaku juhaku merged commit b0cd21f into master Jul 24, 2022
@juhaku juhaku deleted the feature-support-time-crate2 branch July 24, 2022 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

Add support for the time crate
1 participant