pub trait ApiTrait<Raw: RawRequest> {
// Required methods
fn method(&self) -> &Option<Box<dyn Method<Raw::Rpi> + Send + Sync>>;
fn path(&self) -> &'static str;
fn id(&self) -> &'static str;
fn omission(&self) -> bool;
fn redirect(&self) -> &'static str;
fn name(&self) -> &'static str;
fn unresponsive(&self) -> bool;
fn extras(&self) -> &HashMap<&'static str, Box<dyn Any + Send + Sync>>;
fn method_match(&self, raw: &Raw) -> bool;
fn call_controller<'async_trait>(
&'static self,
context: RequestContext<Raw>
) -> Pin<Box<dyn Future<Output = DceResult<Option<Raw::Resp>>> + Send + 'async_trait>>
where Self: 'async_trait;
}
Formats the value using the given formatter.
Read more