blob: ee9c7ece2af36e4751024e4ad39c6453a3bfc8a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
use crate::error::SiteError;
use crate::page::PageMeta;
use crate::site::Site;
use crate::wikitext::ParsedDirective;
#[derive(Debug, Default, Eq, PartialEq)]
pub struct Format {}
impl Format {
pub const REQUIRED: &'static [&'static str] = &[];
pub const ALLOWED: &'static [&'static str] = &[];
pub const ALLOW_ANY_UNNAMED: bool = true;
pub fn process(&self, _site: &Site, _meta: &mut PageMeta) -> Result<String, SiteError> {
Err(SiteError::UnimplementedDirective("format".into()))
}
}
impl From<&ParsedDirective> for Format {
fn from(_: &ParsedDirective) -> Self {
Format::default()
}
}
|