From: Ben Pfaff Date: Wed, 19 Aug 2026 00:38:20 +0000 (-0700) Subject: more types cleanup X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=583cc826ebe4eac03581c31eec576580e514aa71;p=pspp more types cleanup --- diff --git a/rust/pspp/src/spv/read/graph.rs b/rust/pspp/src/spv/read/graph.rs index 88cf30c204..61ca63f5f0 100644 --- a/rust/pspp/src/spv/read/graph.rs +++ b/rust/pspp/src/spv/read/graph.rs @@ -122,20 +122,116 @@ pub enum GraphError { /// Error parsing XML data: {0} XmlError(#[from] serde_path_to_error::Error), - /// Graph has no `coordinates` element. - NoCoordinates, - - /// Graph has multiple `{0}` child elements. - DuplicateGraphChild(&'static str), - /// Graph references missing variable `{0}`. MissingVariable(String), } +#[derive(Debug)] +pub struct Visualization { + /// Locale used for output, e.g. `en-US`. + lang: Option, + + /// The `id` for the base [Style] for the graph. + _style: Option, + + /// Title or caption. + _description: Option, + + /// VizML Schema version number. + _version: Option, + + id: Option, + + source_variables: Vec, + derived_variables: Vec, + delimited_file_sources: Vec, + embedded_sources: Vec, + categorical_domains: Vec, + interval_domains: Vec, + graphs: Vec, + label_frames: Vec, + containers: Vec, + styles: Vec