Skip to main content

hyperlane_plugin_static_files/
struct.rs

1use super::*;
2
3/// The configuration of the static file plugin.
4#[derive(Clone, Debug, Getter)]
5pub struct StaticFilesConfig {
6    /// The directory the files are served from.
7    pub root: PathBuf,
8    /// The file that answers a request for a directory.
9    pub index: String,
10}
11
12/// The plugin that serves the files of a directory.
13#[derive(Clone, Copy, Debug, Default)]
14pub struct StaticFilesPlugin;
15
16/// The route that serves the files of the configured directory.
17#[derive(Clone, Copy, Debug, Default)]
18pub struct StaticFilesRoute;