pub trait SignedStruct<T> {
// Required method
fn from_payload(payload: T, signature: Signature) -> Self;
}
Expand description
This trait must be implemented by all structs that contain a self-signature.
Required Methods§
Sourcefn from_payload(payload: T, signature: Signature) -> Self
fn from_payload(payload: T, signature: Signature) -> Self
Build a signed struct version from the payload struct.
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.