MCPcopy Create free account
hub / github.com/ElementsProject/lightning / deserialize

Method deserialize

cln-rpc/src/primitives.rs:114–121  ·  view source on GitHub ↗
(deserializer: D)

Source from the content-addressed store, hash-verified

112
113impl<'de> Deserialize<'de> for ShortChannelId {
114 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
115 where
116 D: Deserializer<'de>,
117 {
118 use serde::de::Error;
119 let s: String = Deserialize::deserialize(deserializer)?;
120 Ok(Self::from_str(&s).map_err(|e| Error::custom(e.to_string()))?)
121 }
122}
123
124impl FromStr for ShortChannelId {

Callers

nothing calls this directly

Calls 5

AmountClass · 0.85
to_stringMethod · 0.80
unwrapMethod · 0.80
SecretClass · 0.70
decodeFunction · 0.50

Tested by

no test coverage detected