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§
- Meta
Description - A validated meta description label.
- Search
Snippet Metadata - Search snippet metadata composed from focused SEO primitives.
- SeoTitle
- A validated SEO title label.
- Slug
Hint - A normalized slug hint for a page or entity.
Enums§
- Indexing
Hint - Search indexing intent for a page.
- Link
Relation Hint - Link relation hints used by external surfaces.
- Page
Intent - Page intent labels for search snippets and metadata.
- SeoValue
Error - Error returned by SEO primitive constructors.