read_url/internal/metadata.rs
1//
2// InternalUrlMetadata
3//
4
5/// Internal URL metadata.
6#[derive(Clone, Debug)]
7pub struct InternalUrlMetadata {
8 /// Whether the path representation is "slashable".
9 pub slashable: bool,
10
11 /// The optional base path (used when slashable is false).
12 pub base_path: Option<String>,
13
14 /// The optional format.
15 pub format: Option<String>,
16}
17
18impl InternalUrlMetadata {
19 /// Constructor
20 pub fn new(slashable: bool, base_path: Option<String>, format: Option<String>) -> Self {
21 Self { slashable, base_path, format }
22 }
23}