pub trait ToFwCall<'a>where
Self: Deserialize<'a> + Serialize + Validate,
Self::ApiResponse: DeserializeOwned + Serialize,
Self::ApiRequest: Deserialize<'a> + Serialize + Validate,{
type ApiRequest;
type ApiResponse;
// Required method
fn get_call(self) -> FwCall<'a, Self::ApiRequest, Self::ApiResponse>;
// Provided method
fn to_call(
self,
) -> Result<FwCall<'a, Self::ApiRequest, Self::ApiResponse>, FWaveError> { ... }
}Required Associated Types§
type ApiRequest
type ApiResponse
Required Methods§
fn get_call(self) -> FwCall<'a, Self::ApiRequest, Self::ApiResponse>
Provided Methods§
fn to_call( self, ) -> Result<FwCall<'a, Self::ApiRequest, Self::ApiResponse>, FWaveError>
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.