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

Method serialize

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

Source from the content-addressed store, hash-verified

218
219impl Serialize for ShortChannelId {
220 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
221 where
222 S: Serializer,
223 {
224 serializer.serialize_str(&self.to_string())
225 }
226}
227
228impl<'de> Deserialize<'de> for ShortChannelId {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.50
to_stringMethod · 0.45

Tested by

no test coverage detected