tmflib 0.1.38

Interface library for processing TMF payloads
Documentation
//! Create Geograpic Site
//!

use tmflib::tmf673::geographic_address::GeographicAddress;
#[cfg(all(feature = "tmf674", feature = "build-V4"))]
use tmflib::tmf674::geographic_site_v4::{CalendarPeriod, GeographicSite, PlaceRefOrValue};
#[cfg(all(feature = "tmf674", feature = "build-V5"))]
use tmflib::tmf674::geographic_site_v5::{CalendarPeriod, GeographicSite, PlaceRefOrValue};

fn main() {
    let address = GeographicAddress::new("HQ")
        .number("17")
        .street("Lumeah")
        .street_type("Ave")
        .suburb("Elanora Heights")
        .state("NSW");

    let site = GeographicSite::new("Home")
        .place(PlaceRefOrValue::from(address))
        .calendar(CalendarPeriod::business_hours());

    dbg!(site);
}