MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / deserialize

Method deserialize

crates/openshell-ocsf/src/enums/http_method.rs:82–85  ·  view source on GitHub ↗
(deserializer: D)

Source from the content-addressed store, hash-verified

80
81impl<'de> Deserialize<'de> for HttpMethod {
82 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
83 let s = String::deserialize(deserializer)?;
84 Ok(s.parse().unwrap())
85 }
86}
87
88impl std::fmt::Display for HttpMethod {

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected