1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pub mod include;

use crate::xml::default_xml_namespace_oasis;
use include::Include;
use serde::{Deserialize, Serialize};

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/// Represents an optional `<edmx:Reference>` tag
///
/// # Child Nodes
/// `1:1 edmx:Include`

#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct Reference {
    #[serde(rename = "@xmlns:edmx", default = "default_xml_namespace_oasis")]
    pub xml_namespace_edmx: String,

    #[serde(rename = "@Uri")]
    pub uri: Option<String>,

    pub include: Option<Include>,
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#[cfg(test)]
pub mod unit_tests;