use-metadata 0.0.1

Page metadata and social preview primitives for RustUse presence utilities
Documentation
  • Coverage
  • 97.83%
    45 out of 46 items documented1 out of 33 items with examples
  • Size
  • Source code size: 14.52 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 881.42 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s 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-metadata

Page metadata and social preview primitives for RustUse presence utilities.

Example

use use_metadata::{MetadataDescription, MetadataTitle, OpenGraphType, PageMetadata, SocialPreview};

let metadata = PageMetadata::new(
    MetadataTitle::new("Example Article").unwrap(),
    MetadataDescription::new("A short example article summary.").unwrap(),
)
.with_social_preview(SocialPreview::new(
    MetadataTitle::new("Example Article").unwrap(),
    MetadataDescription::new("A short example article summary.").unwrap(),
).with_open_graph_type(OpenGraphType::Article));

assert!(metadata.social_preview().is_some());

Scope

  • Metadata titles, descriptions, Open Graph types and images, Twitter card kinds, social previews, and page metadata records.

Non-goals

  • Platform SDKs, HTML rendering, crawler behavior, or image processing.

License

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