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§
- Parsed
Pinterest Url - A parsed Pinterest URL and its canonical representation.
- Pinterest
UrlError - An error returned when an input is invalid or uses an unsupported Pinterest path.
Enums§
- Pinterest
UrlError Code - Machine-readable error categories returned by this crate.
- Pinterest
UrlKind - The supported Pinterest URL classes.
Functions§
- is_
pinterest_ host - Returns
truewhenhostis an exact Pinterest host supported by this crate. - is_
pinterest_ url - Returns
truewheninputis 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.