Skip to main content

serialize_params

Function serialize_params 

Source
pub fn serialize_params<T>(
    params: &T,
    context: &str,
) -> Result<Value, CoreError>
where T: Serialize,
Expand description

标准化参数序列化。

序列化失败时返回 validation_error,附加 operation=serialize_params + resource=<context>