pub trait DynamicType {
// Required method
fn signature(&self) -> Signature;
}
Expand description
Types with dynamic signatures.
Prefer implementing Type if possible, but if the actual signature of your type cannot be determined until runtime, you can implement this type to support serialization. You should also implement DynamicDeserialize for deserialization.
Required Methods§
Sourcefn signature(&self) -> Signature
fn signature(&self) -> Signature
The type signature for self
.
See Type::SIGNATURE
for details.