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

Method from

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected