Skip to main content

og_type

Function og_type 

Source
fn og_type(kind: Option<&str>) -> Option<String>
Expand description

Translate an oEmbed type into the OpenGraph vocabulary the preview response is defined in.

oEmbed names its own kinds (video, photo, link, rich), none of which is an OpenGraph type; anything without a counterpart takes the OpenGraph default the page path would have produced.