summaryrefslogtreecommitdiff
path: root/examples/01-struct
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-07-14 19:49:24 +0100
committerMichael Williamson <mike@zwobble.org>2026-07-14 19:49:24 +0100
commitf189d982951f7f0e2c3560a20c0d1d8a2b6431d0 (patch)
tree2c369ef2467f91aaa1a03071998831d0f84e6e7b /examples/01-struct
parent0e51a1497b98bd190d304acc4c1e1e1f56bf03c7 (diff)
Derive Debug and PartialEq for generated Rust types
Diffstat (limited to 'examples/01-struct')
-rw-r--r--examples/01-struct/output/rust/src/point.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/01-struct/output/rust/src/point.rs b/examples/01-struct/output/rust/src/point.rs
index f2d7ffc..30b661f 100644
--- a/examples/01-struct/output/rust/src/point.rs
+++ b/examples/01-struct/output/rust/src/point.rs
@@ -1,12 +1,14 @@
// Generated by hobgoblin.
/// A straight line from one point to another.
+#[derive(Debug, PartialEq)]
pub struct Line {
pub start: crate::point::Point,
pub end: crate::point::Point,
}
/// A 2D point.
+#[derive(Debug, PartialEq)]
pub struct Point {
pub x: ::core::primitive::i32,
pub y: ::core::primitive::i32,