pub struct FlatRes;Expand description
扁平响应信封(鉴权引导等「不套网关 results_json 信封」的接口使用)。
与 NestedRes 同为网关扁平协议(FlatApiResponse),区别仅在
业务数据的位置:results_json 字符串 vs 顶层平铺字段(extra)。
errcode 校验复用 [validate_flat_api_response],extra 即业务结果。
引导端点须显式挂 SuppressAuth
抑制 Authorization 注入(换取 token 的请求不得携带 token)。
Trait Implementations§
impl Copy for FlatRes
Auto Trait Implementations§
impl Freeze for FlatRes
impl RefUnwindSafe for FlatRes
impl Send for FlatRes
impl Sync for FlatRes
impl Unpin for FlatRes
impl UnsafeUnpin for FlatRes
impl UnwindSafe for FlatRes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more