pub struct Metadata<SS: StringStorage> { /* private fields */ }Expand description
Metadata for a CityJSON document. See the module docs for field descriptions.
Implementations§
Source§impl<SS: StringStorage> Metadata<SS>
impl<SS: StringStorage> Metadata<SS>
pub fn new() -> Self
pub fn geographical_extent(&self) -> Option<&BBox>
pub fn identifier(&self) -> Option<&CityModelIdentifier<SS>>
pub fn reference_date(&self) -> Option<&Date<SS>>
pub fn reference_system(&self) -> Option<&CRS<SS>>
pub fn title(&self) -> Option<&str>
pub fn extra(&self) -> Option<&Attributes<SS>>
Sourcepub fn extra_mut(&mut self) -> &mut Attributes<SS>
pub fn extra_mut(&mut self) -> &mut Attributes<SS>
Returns a mutable reference to the extra attributes, inserting an empty map if absent.
pub fn set_extra(&mut self, extra: Option<Attributes<SS>>)
pub fn set_geographical_extent(&mut self, bbox: BBox)
pub fn set_identifier(&mut self, identifier: CityModelIdentifier<SS>)
pub fn set_reference_date(&mut self, date: Date<SS>)
pub fn set_reference_system(&mut self, crs: CRS<SS>)
pub fn set_title(&mut self, title: SS::String)
pub fn point_of_contact(&self) -> Option<&Contact<SS>>
pub fn set_point_of_contact(&mut self, contact: Option<Contact<SS>>)
Trait Implementations§
Source§impl<SS: StringStorage> Display for Metadata<SS>
impl<SS: StringStorage> Display for Metadata<SS>
impl<SS: StringStorage> StructuralPartialEq for Metadata<SS>
Auto Trait Implementations§
impl<SS> Freeze for Metadata<SS>
impl<SS> RefUnwindSafe for Metadata<SS>
impl<SS> Send for Metadata<SS>
impl<SS> Sync for Metadata<SS>
impl<SS> Unpin for Metadata<SS>
impl<SS> UnsafeUnpin for Metadata<SS>
impl<SS> UnwindSafe for Metadata<SS>
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