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

Method deserialize

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

Source from the content-addressed store, hash-verified

227
228impl<'de> Deserialize<'de> for ShortChannelId {
229 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
230 where
231 D: Deserializer<'de>,
232 {
233 use serde::de::Error;
234 let s: String = Deserialize::deserialize(deserializer)?;
235 Ok(Self::from_str(&s).map_err(|e| Error::custom(e.to_string()))?)
236 }
237}
238
239impl FromStr for ShortChannelId {

Callers

nothing calls this directly

Calls 8

AmountClass · 0.85
parseMethod · 0.80
as_strMethod · 0.80
mapMethod · 0.80
SecretClass · 0.70
decodeFunction · 0.50
to_stringMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected