pub struct ToolpathDocument {
pub graph: Map<String, Value>,
pub meta: Option<Map<String, Value>>,
pub paths: Vec<Value>,
}Expand description
A toolpath v1 Graph document. See https://github.com/empathic/toolpath
for the full schema; the wire format is JSON with top-level fields
graph, paths, and optional meta.
This schema is a permissive object placeholder — generated clients
see free-form JSON for graph, each entry of paths, and meta,
and should defer real validation to the toolpath project.
JSON schema
{
"description": "A toolpath v1 Graph document. See <https://github.com/empathic/toolpath>\nfor the full schema; the wire format is JSON with top-level fields\n`graph`, `paths`, and optional `meta`.\n\nThis schema is a permissive object placeholder — generated clients\nsee free-form JSON for `graph`, each entry of `paths`, and `meta`,\nand should defer real validation to the toolpath project.",
"type": "object",
"required": [
"graph",
"paths"
],
"properties": {
"graph": {
"description": "Graph identity and head pointer.",
"type": "object"
},
"meta": {
"description": "Optional document metadata (title, description). Free-form\nobject; clients should defer real validation to the toolpath\nproject.",
"type": [
"object",
"null"
]
},
"paths": {
"description": "One or more entries — each is either a full inline path object\nor a `{ \"$ref\": \"...\" }` reference to an external path.",
"type": "array",
"items": {}
}
}
}Fields§
§graph: Map<String, Value>Graph identity and head pointer.
meta: Option<Map<String, Value>>Optional document metadata (title, description). Free-form object; clients should defer real validation to the toolpath project.
paths: Vec<Value>One or more entries — each is either a full inline path object
or a { "$ref": "..." } reference to an external path.
Trait Implementations§
Source§impl Clone for ToolpathDocument
impl Clone for ToolpathDocument
Source§fn clone(&self) -> ToolpathDocument
fn clone(&self) -> ToolpathDocument
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 ToolpathDocument
impl Debug for ToolpathDocument
Source§impl<'de> Deserialize<'de> for ToolpathDocument
impl<'de> Deserialize<'de> for ToolpathDocument
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 ToolpathDocument
impl RefUnwindSafe for ToolpathDocument
impl Send for ToolpathDocument
impl Sync for ToolpathDocument
impl Unpin for ToolpathDocument
impl UnsafeUnpin for ToolpathDocument
impl UnwindSafe for ToolpathDocument
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