Trait rustless::framework::nesting::Nesting
[−]
[src]
pub trait Nesting: Node { fn mount<H>(&mut self, edp: H)
where
H: ApiHandler + Send + Sync, { ... } fn namespace<F>(&mut self, path: &str, builder: F)
where
F: FnOnce(&mut Namespace), { ... } fn group<F>(&mut self, path: &str, builder: F)
where
F: FnOnce(&mut Namespace), { ... } fn resource<F>(&mut self, path: &str, builder: F)
where
F: FnOnce(&mut Namespace), { ... } fn resources<F>(&mut self, path: &str, builder: F)
where
F: FnOnce(&mut Namespace), { ... } fn segment<F>(&mut self, path: &str, builder: F)
where
F: FnOnce(&mut Namespace), { ... } fn get<F>(&mut self, path: &str, builder: F)
where
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent, { ... } fn post<F>(&mut self, path: &str, builder: F)
where
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent, { ... } fn put<F>(&mut self, path: &str, builder: F)
where
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent, { ... } fn delete<F>(&mut self, path: &str, builder: F)
where
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent, { ... } fn options<F>(&mut self, path: &str, builder: F)
where
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent, { ... } fn head<F>(&mut self, path: &str, builder: F)
where
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent, { ... } fn before<F: 'static>(&mut self, callback: F)
where
F: for<'a> Fn(&'a mut Client, &JsonValue) -> HandleSuccessResult + Send + Sync, { ... } fn before_validation<F: 'static>(&mut self, callback: F)
where
F: for<'a> Fn(&'a mut Client, &JsonValue) -> HandleSuccessResult + Send + Sync, { ... } fn after<F: 'static>(&mut self, callback: F)
where
F: for<'a> Fn(&'a mut Client, &JsonValue) -> HandleSuccessResult + Send + Sync, { ... } fn after_validation<F: 'static>(&mut self, callback: F)
where
F: for<'a> Fn(&'a mut Client, &JsonValue) -> HandleSuccessResult + Send + Sync, { ... } fn call_handlers<'a, 'r>(
&'a self,
rest_path: &str,
params: &mut JsonValue,
req: &'r mut Request + 'r,
info: &mut CallInfo<'a>
) -> HandleResult<Response> { ... } }
Provided Methods
fn mount<H>(&mut self, edp: H) where
H: ApiHandler + Send + Sync,
H: ApiHandler + Send + Sync,
fn namespace<F>(&mut self, path: &str, builder: F) where
F: FnOnce(&mut Namespace),
F: FnOnce(&mut Namespace),
fn group<F>(&mut self, path: &str, builder: F) where
F: FnOnce(&mut Namespace),
F: FnOnce(&mut Namespace),
fn resource<F>(&mut self, path: &str, builder: F) where
F: FnOnce(&mut Namespace),
F: FnOnce(&mut Namespace),
fn resources<F>(&mut self, path: &str, builder: F) where
F: FnOnce(&mut Namespace),
F: FnOnce(&mut Namespace),
fn segment<F>(&mut self, path: &str, builder: F) where
F: FnOnce(&mut Namespace),
F: FnOnce(&mut Namespace),
fn get<F>(&mut self, path: &str, builder: F) where
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent,
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent,
fn post<F>(&mut self, path: &str, builder: F) where
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent,
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent,
fn put<F>(&mut self, path: &str, builder: F) where
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent,
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent,
fn delete<F>(&mut self, path: &str, builder: F) where
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent,
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent,
fn options<F>(&mut self, path: &str, builder: F) where
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent,
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent,
fn head<F>(&mut self, path: &str, builder: F) where
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent,
F: FnOnce(&mut Endpoint) -> EndpointHandlerPresent,
fn before<F: 'static>(&mut self, callback: F) where
F: for<'a> Fn(&'a mut Client, &JsonValue) -> HandleSuccessResult + Send + Sync,
F: for<'a> Fn(&'a mut Client, &JsonValue) -> HandleSuccessResult + Send + Sync,
fn before_validation<F: 'static>(&mut self, callback: F) where
F: for<'a> Fn(&'a mut Client, &JsonValue) -> HandleSuccessResult + Send + Sync,
F: for<'a> Fn(&'a mut Client, &JsonValue) -> HandleSuccessResult + Send + Sync,
fn after<F: 'static>(&mut self, callback: F) where
F: for<'a> Fn(&'a mut Client, &JsonValue) -> HandleSuccessResult + Send + Sync,
F: for<'a> Fn(&'a mut Client, &JsonValue) -> HandleSuccessResult + Send + Sync,
fn after_validation<F: 'static>(&mut self, callback: F) where
F: for<'a> Fn(&'a mut Client, &JsonValue) -> HandleSuccessResult + Send + Sync,
F: for<'a> Fn(&'a mut Client, &JsonValue) -> HandleSuccessResult + Send + Sync,
fn call_handlers<'a, 'r>(
&'a self,
rest_path: &str,
params: &mut JsonValue,
req: &'r mut Request + 'r,
info: &mut CallInfo<'a>
) -> HandleResult<Response>
&'a self,
rest_path: &str,
params: &mut JsonValue,
req: &'r mut Request + 'r,
info: &mut CallInfo<'a>
) -> HandleResult<Response>