Download next.js/crates/next-api/src/entrypoints.rs from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 532 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-api/src/entrypoints.rs
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/crates/next-api/src/entrypoints.rs
-
curl -L -o entrypoints.rs https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-api/src/entrypoints.rs
532 Bytes
| use turbo_rcstr::RcStr; | |
| use turbo_tasks::{FxIndexMap, ResolvedVc}; | |
| use crate::{ | |
| project::{Instrumentation, Middleware}, | |
| route::{Endpoint, Route}, | |
| }; | |
| pub struct Entrypoints { | |
| pub routes: FxIndexMap<RcStr, Route>, | |
| pub middleware: Option<Middleware>, | |
| pub instrumentation: Option<Instrumentation>, | |
| pub pages_document_endpoint: ResolvedVc<Box<dyn Endpoint>>, | |
| pub pages_app_endpoint: ResolvedVc<Box<dyn Endpoint>>, | |
| pub pages_error_endpoint: ResolvedVc<Box<dyn Endpoint>>, | |
| } | |