shex_ast 0.2.15

RDF data shapes implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::ShExFormat;

/// Method employed to resolve imports when ghessing the format of an import
#[derive(Debug, Clone)]
pub enum ResolveMethod {
    RotatingFormats(Vec<ShExFormat>),
    ByGuessingExtension,
    ByContentNegotiation,
}

impl Default for ResolveMethod {
    fn default() -> Self {
        ResolveMethod::RotatingFormats(vec![ShExFormat::ShExC, ShExFormat::ShExJ])
    }
}