pub struct SemanticsSurface {
pub thetype: SemanticSurfaceType,
pub parent: Option<usize>,
pub children: Option<Vec<usize>>,
pub other: HashMap<String, Value>,
}Expand description
One semantic surface: its type, its place in the parent/children hierarchy, and any further attributes the file chooses to carry.
Fields§
§thetype: SemanticSurfaceType§parent: Option<usize>§children: Option<Vec<usize>>§other: HashMap<String, Value>CityJSON lets a semantic surface carry arbitrary extra members
(slope, direction, …); they are kept verbatim so that a file
round-trips without losing them.
Trait Implementations§
Source§impl Clone for SemanticsSurface
impl Clone for SemanticsSurface
Source§fn clone(&self) -> SemanticsSurface
fn clone(&self) -> SemanticsSurface
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SemanticsSurface
impl Debug for SemanticsSurface
Source§impl<'de> Deserialize<'de> for SemanticsSurface
impl<'de> Deserialize<'de> for SemanticsSurface
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SemanticsSurface
Source§impl PartialEq for SemanticsSurface
impl PartialEq for SemanticsSurface
Source§impl Serialize for SemanticsSurface
impl Serialize for SemanticsSurface
impl StructuralPartialEq for SemanticsSurface
Auto Trait Implementations§
impl Freeze for SemanticsSurface
impl RefUnwindSafe for SemanticsSurface
impl Send for SemanticsSurface
impl Sync for SemanticsSurface
impl Unpin for SemanticsSurface
impl UnsafeUnpin for SemanticsSurface
impl UnwindSafe for SemanticsSurface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more