use-schema 0.0.1

Practical structured-data primitives for RustUse presence utilities
Documentation
  • Coverage
  • 96%
    48 out of 50 items documented1 out of 45 items with examples
  • Size
  • Source code size: 16.92 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 959.99 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-presence
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-schema

Practical structured-data primitives for RustUse presence utilities.

Example

use use_schema::{Organization, PostalAddress};

let address = PostalAddress::new("1 Main St", "Portland", "OR", "97201", "US").unwrap();
let organization = Organization::new("Example Co").unwrap().with_address(address);

assert_eq!(organization.schema_type(), "Organization");

Scope

  • Practical records for organizations, local businesses, products, articles, breadcrumbs, FAQ entries, addresses, ratings, and opening hours.

Non-goals

  • A full schema.org implementation, JSON-LD serialization framework, or validation service.

License

Licensed under either Apache-2.0 or MIT, at your option.