pub fn encode_payload<T>(value: &T) -> Result<Payload, WorkerError>where
T: Serialize,Expand description
Encodes a typed value into the baseline JSON payload codec.
ยงErrors
Returns WorkerError::Encode when the value cannot be serialized.
pub fn encode_payload<T>(value: &T) -> Result<Payload, WorkerError>where
T: Serialize,Encodes a typed value into the baseline JSON payload codec.
Returns WorkerError::Encode when the value cannot be serialized.