pub trait ToResultant<T> {
// Required method
fn to_resultant(self) -> Json<Resultant<T>>;
}Expand description
ToResultant 特征是 Rust 中的一个特征,它定义了一个 to_resultant 方法,用于使用 Resultant<T> 对象将值转换为 JSON 响应。
Required Methods§
fn to_resultant(self) -> Json<Resultant<T>>
Implementations on Foreign Types§
Source§impl<T, E> ToResultant<T> for Result<T, E>
Result<T, E> 的 impl<T, E> ToResultant 块正在实现 Result<T, E> 类型的 ToResultant 特征。
impl<T, E> ToResultant<T> for Result<T, E>
Result<T, E> 的 impl<T, E> ToResultant