tonic::include_proto!("cln"); use cln_rpc::primitives::Amount as JAmount; impl From for Amount { fn from(a: JAmount) -> Self { Amount { msat: a.msat() } } } impl From for JAmount { fn from(a: Amount) -> Self { JAmount::from_msat(a.msat) } }