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

Class Ppm

plugins/lsps-plugin/src/proto/lsps0.rs:167–167  ·  view source on GitHub ↗

Key attribute! Serialize/Deserialize as the inner u32

Source from the content-addressed store, hash-verified

165#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
166#[serde(transparent)] // Key attribute! Serialize/Deserialize as the inner u32
167pub struct Ppm(pub u32); // u32 is sufficient as 1,000,000 fits easily (spec definition)
168
169impl Ppm {
170 /// Constructs a new `Ppm` from a u32.

Calls

no outgoing calls

Tested by 1

test_policy_paramsFunction · 0.68