Skip to main content

Crate use_seo

Crate use_seo 

Source
Expand description

§use-seo

SEO and search snippet primitives for RustUse presence utilities.

§Example

use use_seo::{IndexingHint, MetaDescription, PageIntent, SearchSnippetMetadata, SeoTitle};

let snippet = SearchSnippetMetadata::new(
    SeoTitle::new("Example Services").unwrap(),
    MetaDescription::new("Helpful service details for Example.").unwrap(),
)
.with_intent(PageIntent::Local)
.with_indexing_hint(IndexingHint::Index);

assert_eq!(snippet.intent(), PageIntent::Local);

§Scope

  • Titles, meta descriptions, slug hints, indexing hints, link relation hints, page intent, and snippet metadata.
  • Lightweight validation and labels for composing external presence metadata.

§Non-goals

  • Crawling, ranking, search engine clients, or SEO automation.
  • Full HTML document generation.

§License

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

Structs§

MetaDescription
A validated meta description label.
SearchSnippetMetadata
Search snippet metadata composed from focused SEO primitives.
SeoTitle
A validated SEO title label.
SlugHint
A normalized slug hint for a page or entity.

Enums§

IndexingHint
Search indexing intent for a page.
LinkRelationHint
Link relation hints used by external surfaces.
PageIntent
Page intent labels for search snippets and metadata.
SeoValueError
Error returned by SEO primitive constructors.