pub struct UploadGraphBody {
pub document: ToolpathDocument,
pub name: Option<String>,
pub visibility: Option<Visibility>,
}Expand description
Request body for POST /api/v1/u/{owner}/repos/{repo}/graphs.
The document field carries a multi-path toolpath Graph; inline
path entries are admitted into the workspace and deduped by their
toolpath ID, refs are kept as ID references.
JSON schema
{
"description": "Request body for `POST /api/v1/u/{owner}/repos/{repo}/graphs`.\n\nThe `document` field carries a multi-path toolpath Graph; inline\npath entries are admitted into the workspace and deduped by their\ntoolpath ID, refs are kept as ID references.",
"type": "object",
"required": [
"document"
],
"properties": {
"document": {
"$ref": "#/components/schemas/ToolpathDocument"
},
"name": {
"description": "Optional human-readable display label. Free-form; no URL or\nuniqueness implications — the server addresses the created\ngraph by its UUID `id` in the response. Defaults to whatever\nthe uploader (web/CLI) chose to send, typically the filename.",
"type": [
"string",
"null"
]
},
"visibility": {
"description": "Graph visibility. Omitted defaults to `unlisted` —\nreachable only via the graph's UUID share link or to the\nauthenticated owner. Flip later via `PATCH\n/graphs/{id}/visibility`.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/Visibility"
}
]
}
]
}
},
"additionalProperties": false
}Fields§
§document: ToolpathDocument§name: Option<String>Optional human-readable display label. Free-form; no URL or
uniqueness implications — the server addresses the created
graph by its UUID id in the response. Defaults to whatever
the uploader (web/CLI) chose to send, typically the filename.
visibility: Option<Visibility>Graph visibility. Omitted defaults to unlisted —
reachable only via the graph’s UUID share link or to the
authenticated owner. Flip later via PATCH /graphs/{id}/visibility.
Trait Implementations§
Source§impl Clone for UploadGraphBody
impl Clone for UploadGraphBody
Source§fn clone(&self) -> UploadGraphBody
fn clone(&self) -> UploadGraphBody
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 UploadGraphBody
impl Debug for UploadGraphBody
Source§impl<'de> Deserialize<'de> for UploadGraphBody
impl<'de> Deserialize<'de> for UploadGraphBody
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 UploadGraphBody
impl RefUnwindSafe for UploadGraphBody
impl Send for UploadGraphBody
impl Sync for UploadGraphBody
impl Unpin for UploadGraphBody
impl UnsafeUnpin for UploadGraphBody
impl UnwindSafe for UploadGraphBody
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