pub trait ToPayload {
// Required methods
fn to_payload(&self) -> Result<Vec<u8>, Error>;
fn content_type(&self) -> Content;
fn derivation_paths(&self) -> Result<Vec<DerivationPath>, Error>;
fn keys(&self) -> Result<Vec<PublicKey>, Error>;
}Required Methods§
fn to_payload(&self) -> Result<Vec<u8>, Error>
fn content_type(&self) -> Content
fn derivation_paths(&self) -> Result<Vec<DerivationPath>, Error>
fn keys(&self) -> Result<Vec<PublicKey>, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".