pub trait Scheme {
type Network: NetworkFamily;
type Payload;
const SCHEME_NAME: &'static str;
// Required method
fn network(&self) -> &Self::Network;
}Expand description
A payment scheme applied to a network family.
Required Associated Constants§
Sourceconst SCHEME_NAME: &'static str
const SCHEME_NAME: &'static str
The name of the scheme.
Required Associated Types§
Sourcetype Network: NetworkFamily
type Network: NetworkFamily
The network family this scheme applies to.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.