[−][src]Function octocrab::format_preview
pub fn format_preview(preview: impl AsRef<str>) -> String
Formats a GitHub preview from it's name into the full value for the
Accept
header.
assert_eq!(octocrab::format_preview("machine-man"), "application/vnd.github.machine-man-preview");