11 releases
0.3.1 | Nov 27, 2023 |
---|---|
0.3.0 | Nov 26, 2023 |
0.2.4 | Nov 18, 2023 |
0.1.3 | Sep 27, 2023 |
#2397 in Database interfaces
110 downloads per month
122MB
3.5M
SLoC
Schema.org Schemas as Rust Types
Schema.org is a collaborative, community activity with a mission to create, maintain, and promote schemas for structured data on the Internet, on web pages, in email messages, and beyond.
This crate implements these schemas as Rust types.
Usage
If you actually want to use this library, be aware that there might need to be a big rework: https://github.com/Toromyx/schema_org_types_rs/issues/15.
Please also tell me how you want to use Schema.org types in Rust.
lib.rs
:
This crate provides automatically generated Rust types of Schema.org schemas.
You will need a #![recursion_limit = "512"]
when compiling this crate.
Features
derive-all
— add all derives on the schemas- enables derive-debug, derive-clone
derive-debug
— deriveDebug
for the schemas- enabled by derive-all
derive-clone
— deriveClone
for the schemas- enabled by derive-all
fallible
— add a last*Fail
-variant to all properties which should capture all failed deserialization attempts with their value, seefallible
Optional Dependencies
serde
— enable serialization and deserialization via serde- enables dep:serde, dep:serde_with, json-number/serde, url/serde
Dependencies
~5MB
~88K SLoC