pub struct GraphDocumentResponse {
pub created_at: DateTime<Utc>,
pub document: Map<String, Value>,
pub header: Option<Map<String, Value>>,
pub id: Uuid,
pub name: Option<String>,
pub path_count: i32,
pub repo_id: Uuid,
pub title: Option<String>,
pub toolpath_id: String,
pub updated_at: DateTime<Utc>,
pub url: String,
pub visibility: Visibility,
}Expand description
Wraps a Graph with its path count, reconstructed multi-path
document, and the URL. Used by endpoints that promise the full
document on the wire.
JSON schema
{
"description": "Wraps a `Graph` with its path count, reconstructed multi-path\ndocument, and the URL. Used by endpoints that promise the full\ndocument on the wire.",
"allOf": [
{
"$ref": "#/components/schemas/Graph"
},
{
"type": "object",
"required": [
"document",
"path_count",
"url"
],
"properties": {
"document": {
"description": "Reconstructed `{ graph, paths: [{path, steps, meta?}, …] }`.",
"type": "object"
},
"path_count": {
"type": "integer",
"format": "int32"
},
"url": {
"type": "string"
}
}
}
]
}Fields§
§created_at: DateTime<Utc>§document: Map<String, Value>Reconstructed { graph, paths: [{path, steps, meta?}, …] }.
header: Option<Map<String, Value>>Graph metadata: {graph: GraphIdentity, meta?: GraphMeta} —
the toolpath Graph shape minus its paths. Absent when not set.
id: Uuid§name: Option<String>Optional human-readable label for display. Free-form; no URL
implications — graphs are addressed by id (UUID) at the wire
boundary. Defaults from the uploader (filename or caller-
provided) and can be edited.
path_count: i32§repo_id: Uuid§title: Option<String>§toolpath_id: String§updated_at: DateTime<Utc>§url: String§visibility: VisibilityTrait Implementations§
Source§impl Clone for GraphDocumentResponse
impl Clone for GraphDocumentResponse
Source§fn clone(&self) -> GraphDocumentResponse
fn clone(&self) -> GraphDocumentResponse
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 GraphDocumentResponse
impl Debug for GraphDocumentResponse
Source§impl<'de> Deserialize<'de> for GraphDocumentResponse
impl<'de> Deserialize<'de> for GraphDocumentResponse
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 GraphDocumentResponse
impl RefUnwindSafe for GraphDocumentResponse
impl Send for GraphDocumentResponse
impl Sync for GraphDocumentResponse
impl Unpin for GraphDocumentResponse
impl UnsafeUnpin for GraphDocumentResponse
impl UnwindSafe for GraphDocumentResponse
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