Skip to main content

encode

Function encode 

Source
pub fn encode<'facet, T: Facet<'facet> + ?Sized>(body: &T) -> String
Expand description

Encode a request body that always encodes: a facet-derived struct of plain fields or a [Value] this crate built.

ยงPanics

Never in practice: such a body always encodes as JSON.