Trait ApiTrait
Source pub trait ApiTrait<Rp: RoutableProtocol> {
// Required methods
fn method(&self) -> &Option<Box<dyn Method<Rp> + Send + Sync>>;
fn path(&self) -> &'static str;
fn suffixes(&self) -> &BTreeSet<Suffix>;
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, rp: &Rp) -> bool;
fn call_controller<'a, 'async_trait>(
&'static self,
context: &'a mut Context<Rp>,
) -> Pin<Box<dyn Future<Output = DceResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait;
}
Formats the value using the given formatter.
Read more