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

Method serialize

cln-rpc/src/primitives.rs:105–110  ·  view source on GitHub ↗
(&self, serializer: S)

Source from the content-addressed store, hash-verified

103
104impl Serialize for ShortChannelId {
105 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
106 where
107 S: Serializer,
108 {
109 serializer.serialize_str(&self.to_string())
110 }
111}
112
113impl<'de> Deserialize<'de> for ShortChannelId {

Callers

nothing calls this directly

Calls 2

to_stringMethod · 0.80
encodeFunction · 0.50

Tested by

no test coverage detected