MCPcopy Create free account
hub / github.com/bajrangCoder/setu / language

Method language

src/entities/response.rs:56–66  ·  view source on GitHub ↗

Get the language name for syntax highlighting

(&self)

Source from the content-addressed store, hash-verified

54 #[default]
55 Text,
56 Binary,
57}
58#[allow(dead_code)]
59impl ContentCategory {
60 /// Get the language name for syntax highlighting
61 pub fn language(&self) -> &'static str {
62 match self {
63 ContentCategory::Json => "json",
64 ContentCategory::Html => "html",
65 ContentCategory::Xml => "xml",
66 ContentCategory::Image => "text",
67 ContentCategory::Audio => "text",
68 ContentCategory::Text => "text",
69 ContentCategory::Binary => "text",

Callers 1

ensure_body_displayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected