For APIs that accept a request body, the builderstruct should expose a function for setting a body for the request. The input parameter should probably be a type that implements serde's Serialize trait, to allow a user to supply their own type for a request, or use serde's json! macro and serde_json::Value.
For APIs that accept a request body, the builder
struct
should expose a function for setting a body for the request. The input parameter should probably be a type that implements serde'sSerialize
trait, to allow a user to supply their own type for a request, or use serde'sjson!
macro andserde_json::Value
.