Skip to main content

Crate pinterest_url_normalizer

Crate pinterest_url_normalizer 

Source
Expand description

Parse, classify, and normalize supported Pinterest URLs without network requests.

Full Pinterest URLs are normalized to www.pinterest.com. Short pin.it links retain their host because resolving them requires a network request.

Structs§

ParsedPinterestUrl
A parsed Pinterest URL and its canonical representation.
PinterestUrlError
An error returned when an input is invalid or uses an unsupported Pinterest path.

Enums§

PinterestUrlErrorCode
Machine-readable error categories returned by this crate.
PinterestUrlKind
The supported Pinterest URL classes.

Functions§

is_pinterest_host
Returns true when host is an exact Pinterest host supported by this crate.
is_pinterest_url
Returns true when input is a supported Pinterest URL.
normalize_pinterest_url
Returns the canonical URL for a supported Pinterest URL.
parse_pinterest_url
Parses a supported Pinterest URL and returns its normalized fields.