pub enum Surface {
Table {
columns: Vec<Column>,
},
Tree {
columns: Vec<Column>,
},
Graph,
Form {
fields: Vec<Field>,
},
Matrix {
row_axis: Vec<String>,
col_axis: Vec<String>,
},
Stream,
Editor {
mode: EditorMode,
},
Chart,
Terminal,
}Expand description
A single surface, carrying the kind and any kind-specific data.
Variants§
Table
Tree
Graph
Known incomplete: Graph carries no data yet (topology layout is still to be
designed — see ADR-0005’s “known incomplete” note).
Form
Matrix
Two-dimensional virtualized data. Axis labels are the identity of each axis;
the cells themselves are queried through the data plane (like Table), never
materialized here.
Stream
Known incomplete: stream contents are described by the data plane, not this unit.
Editor
Fields
§
mode: EditorModeChart
Known incomplete: chart configuration (series, axes) is still to be designed.
Terminal
Known incomplete: terminal I/O framing is still to be designed.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Surface
impl<'de> Deserialize<'de> for Surface
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
Source§impl<'_enum> From<&'_enum Surface> for SurfaceKind
impl<'_enum> From<&'_enum Surface> for SurfaceKind
Source§fn from(val: &'_enum Surface) -> SurfaceKind
fn from(val: &'_enum Surface) -> SurfaceKind
Converts to this type from the input type.
Source§impl From<Surface> for SurfaceKind
impl From<Surface> for SurfaceKind
Source§fn from(val: Surface) -> SurfaceKind
fn from(val: Surface) -> SurfaceKind
Converts to this type from the input type.
impl StructuralPartialEq for Surface
Auto Trait Implementations§
impl Freeze for Surface
impl RefUnwindSafe for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin for Surface
impl UnsafeUnpin for Surface
impl UnwindSafe for Surface
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