pub fn encode_service(message: &ServiceMessage) -> StringExpand description
What: The line for a service message. Why: The same one-object form in the other direction.
In TS you’d write (pseudocode):
JSON.stringify(message)pub fn encode_service(message: &ServiceMessage) -> StringWhat: The line for a service message. Why: The same one-object form in the other direction.
In TS you’d write (pseudocode):
JSON.stringify(message)