MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / deserialize

Method deserialize

icicle-cortexm/src/config.rs:472–478  ·  view source on GitHub ↗
(deserializer: D)

Source from the content-addressed store, hash-verified

470
471impl<'de> Deserialize<'de> for Permissions {
472 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
473 where
474 D: serde::Deserializer<'de>,
475 {
476 let str: std::borrow::Cow<str> = Deserialize::deserialize(deserializer)?;
477 str.parse().map_err(|_| serde::de::Error::custom(format!("invalid permission bits: {str}")))
478 }
479}
480
481impl Serialize for Permissions {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected