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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
extern crate alloc;
// Re-export for convenience
pub use *;
// XML parsing features (optional)
pub use quick_xml;
/// Parse XML string into Vmix structure
///
/// # Examples
///
/// ```ignore
/// use vmix_core::{Vmix, from_str};
///
/// let xml = r#"<vmix><version>1.0</version>...</vmix>"#;
/// let vmix: Vmix = from_str(xml)?;
/// ```
/// Serialize Vmix structure to XML string
///
/// # Examples
///
/// ```ignore
/// use vmix_core::{Vmix, to_string};
///
/// let vmix = Vmix { /* ... */ };
/// let xml = to_string(&vmix)?;
/// ```