pub struct Objects {
pub guid: String,
pub name: String,
pub points: Vec<Point>,
pub lines: Vec<Line>,
pub planes: Vec<Plane>,
pub bboxes: Vec<BoundingBox>,
pub polylines: Vec<Polyline>,
pub pointclouds: Vec<PointCloud>,
pub meshes: Vec<Mesh>,
pub cylinders: Vec<Cylinder>,
pub arrows: Vec<Arrow>,
}
Expand description
A collection of all geometry objects.
Fields§
§guid: String
§name: String
§points: Vec<Point>
§lines: Vec<Line>
§planes: Vec<Plane>
§bboxes: Vec<BoundingBox>
§polylines: Vec<Polyline>
§pointclouds: Vec<PointCloud>
§meshes: Vec<Mesh>
§cylinders: Vec<Cylinder>
§arrows: Vec<Arrow>
Implementations§
Source§impl Objects
impl Objects
pub fn new() -> Self
Sourcepub fn jsondump(&self) -> Result<String, Box<dyn Error>>
pub fn jsondump(&self) -> Result<String, Box<dyn Error>>
Serializes the Objects to a JSON string.
Sourcepub fn jsonload(json_data: &str) -> Result<Self, Box<dyn Error>>
pub fn jsonload(json_data: &str) -> Result<Self, Box<dyn Error>>
Deserializes Objects from a JSON string.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Objects
impl<'de> Deserialize<'de> for Objects
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
Auto Trait Implementations§
impl Freeze for Objects
impl RefUnwindSafe for Objects
impl Send for Objects
impl Sync for Objects
impl Unpin for Objects
impl UnwindSafe for Objects
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