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
use muzzman_daemon::prelude::*;

fn main() {
    {
        let daemon = DaemonSession::new().unwrap();
        let session = daemon.create_session();

        let default_location = session.get_default_location().unwrap();

        println!(
            "Default Location Info: {:?}",
            default_location.get_location_info().unwrap()
        );

        let new_element = default_location.create_element("TestElement").unwrap();
        println!(
            "Element Info: {:?}",
            new_element.get_element_info().unwrap()
        );

        println!(
            "Default Location Info: {:?}",
            default_location.get_location_info().unwrap()
        );
    }
}