made_core/value_objects/ceremony/
step_output.rs1use serde::{Deserialize, Serialize};
2
3use crate::value_objects::Attributes;
4
5#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
6#[serde(transparent)]
7pub struct StepOutput(Attributes);
8
9impl StepOutput {
10 #[must_use]
11 pub fn new(attributes: Attributes) -> Self {
12 Self(attributes)
13 }
14
15 #[must_use]
16 pub fn empty() -> Self {
17 Self::default()
18 }
19
20 #[must_use]
21 pub fn attributes(&self) -> &Attributes {
22 &self.0
23 }
24}