egml-core 0.0.2-alpha.4

Core primitives and operations for processing GML data.
Documentation
use crate::model::geometry::aggregates::MultiSurface;

#[derive(Debug, Clone, PartialEq)]
pub struct MultiSurfaceProperty {
    pub object: Option<MultiSurface>,
    pub href: Option<String>,
}

impl MultiSurfaceProperty {
    pub fn new(object: MultiSurface) -> Self {
        Self {
            object: Some(object),
            href: None,
        }
    }

    pub fn new_href(href: impl Into<String>) -> Self {
        Self {
            object: None,
            href: Some(href.into()),
        }
    }
}