MCPcopy Create free account
hub / github.com/hashintel/hash / as_str

Method as_str

libs/@local/hashql/eval/src/orchestrator/codec/mod.rs:67–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65
66impl JsonValueKind {
67 pub(crate) const fn as_str(self) -> &'static str {
68 match self {
69 Self::Null => "null",
70 Self::Bool => "boolean",
71 Self::Number => "number",
72 Self::String => "string",
73 Self::Array => "array",
74 Self::Object => "object",
75 }
76 }
77}
78
79impl From<JsonValueRef<'_>> for JsonValueKind {

Callers 5

fromMethod · 0.45
to_sqlMethod · 0.45
serializeMethod · 0.45
encode_parameter_inFunction · 0.45
decodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected