pub trait CanonicalMutationBody {
// Required method
fn canonical_body(&self) -> Result<Vec<u8>, TryFromIntError>;
}Expand description
A stable semantic body for a side-effecting unary RPC.
Implementations deliberately enumerate handler-consumed fields instead of re-encoding the protobuf message, whose unknown fields and map order are not a mixed-version contract.
Required Methods§
fn canonical_body(&self) -> Result<Vec<u8>, TryFromIntError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".