pub struct Endpoint {
pub framework: Framework,
pub method: String,
pub path: String,
pub handler_name_at: Option<Range>,
pub handler_ref: Option<String>,
pub route_name: Option<String>,
pub site: Range,
}Expand description
One route, before it meets the model.
Fields§
§framework: Framework§method: StringUpper-case HTTP method, ANY for Django routes.
path: String§handler_name_at: Option<Range>Decorated function (Flask, FastAPI): where its name sits.
handler_ref: Option<String>View named by the route (Django): views.users or UserView (from
UserView.as_view()), as written.
route_name: Option<String>Django name= of the route.
site: RangeThe decorator or the path(...) call.
Trait Implementations§
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Forget for Endpoint
impl Freeze for Endpoint
impl Move for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpointwhere
RawVecInner: Send,
impl Sync for Endpointwhere
RawVecInner: Sync,
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpointwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more