pub fn encode(message: &Message) -> StringExpand description
Encode one S2 message.
The output is canonical: properties in schema order, absent optionals omitted rather
than written as null, timestamps in UTC with the fewest fractional digits that lose
nothing. Re-encoding a message a proxy did not change is a no-op.
ยงPanics
Never, for any Message this crate can construct: the model contains no map with
non-string keys and no type whose Serialize can fail. A non-finite f64 would be
the one way to reach a failure, and the builders and validator refuse those.