pub struct Project {
pub name: String,
pub description: String,
pub coordinate_reference_system: String,
pub units: String,
pub origin: Vector3,
pub author: String,
pub application: String,
pub date: DateTime<Utc>,
pub metadata: Map<String, Value>,
pub elements: Vec<Element>,
}
Expand description
Root object of an OMF file.
This is the root element of an OMF file, holding global metadata and a list of Elements that describe the objects or shapes within the file.
Fields§
§name: String
Project name.
description: String
Optional project description.
coordinate_reference_system: String
Optional EPSG or PROJ local transformation string, default empty.
Exactly what is supported depends on the application reading the file.
units: String
Optional unit for distances and locations within the file.
Typically “meters”, “metres”, “feet”, or empty because the coordinate reference system defines it. If both are empty then applications may assume meters.
origin: Vector3
Optional project origin, default [0, 0, 0].
Most geometries also have their own origin field. To get the real location add this origin and the geometry origin to all locations within each element.
Optional name or email address of the person that created the file, default empty.
application: String
Optional name and version of the application that created the file, default empty.
date: DateTime<Utc>
Optional file or data creation date, default empty.
metadata: Map<String, Value>
Arbitrary metadata.
This is the place to put anything that doesn’t fit in the other fields.
Application-specific data should use a prefix that identifies the application, like
"lf-something"
for Leapfrog.
elements: Vec<Element>
List of elements.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
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>,
source§impl JsonSchema for Project
impl JsonSchema for Project
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreimpl StructuralPartialEq for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)