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

Method from

cln-grpc/src/convert.rs:19–25  ·  view source on GitHub ↗
(c: responses::GetinfoAddress)

Source from the content-addressed store, hash-verified

17#[allow(unused_variables)]
18impl From<responses::GetinfoAddress> for pb::GetinfoAddress {
19 fn from(c: responses::GetinfoAddress) -> Self {
20 Self {
21 address: c.address, // Rule #2 for type string?
22 port: c.port.into(), // Rule #2 for type u16
23 item_type: c.item_type as i32,
24 }
25 }
26}
27
28#[allow(unused_variables)]

Callers

nothing calls this directly

Calls 7

mapMethod · 0.80
to_vecMethod · 0.80
decodeFunction · 0.50
encodeFunction · 0.50
unwrapMethod · 0.45
serializeMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected