pub trait ApiSuccessResponse: Sized {
// Provided methods
fn api_success_response<Meta>(
self,
meta: Option<Meta>,
) -> ApiResponse<Self, Meta> { ... }
fn api_success_without_meta<Meta>(self) -> ApiResponse<Self, Meta> { ... }
fn api_success_with_meta<Meta>(self, meta: Meta) -> ApiResponse<Self, Meta> { ... }
}
Provided Methods§
fn api_success_response<Meta>( self, meta: Option<Meta>, ) -> ApiResponse<Self, Meta>
fn api_success_without_meta<Meta>(self) -> ApiResponse<Self, Meta>
fn api_success_with_meta<Meta>(self, meta: Meta) -> ApiResponse<Self, Meta>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.