Skip to main content

ser

Function ser 

Source
pub fn ser<T: Serialize>(val: T) -> Result<Value, JmapError>
👎Deprecated:

renamed to serialize_value (bd:JMAP-wlip.21)

Expand description

Deprecated alias for serialize_value (bd:JMAP-wlip.21).

The opaque 3-letter name was hard to read in consumer code (let v = ser(x)?; left readers grepping three crates to learn what ser did) and collided with the common local-variable name ser. Use serialize_value instead. This alias is preserved for one release as a deprecation runway; it will be removed in the next major.