Skip to main content

over_there/core/msg/content/reply/
sequence.rs

1use crate::core::Reply;
2use schemars::JsonSchema;
3use serde::{Deserialize, Serialize};
4
5/// Represents arguments to a response of executing a sequence of operations
6#[derive(
7    JsonSchema, Serialize, Deserialize, Default, Clone, Debug, PartialEq, Eq,
8)]
9pub struct SequenceArgs {
10    pub results: Vec<Reply>,
11}
12
13impl crate::core::SchemaInfo for SequenceArgs {}
14
15impl From<Vec<Reply>> for SequenceArgs {
16    fn from(results: Vec<Reply>) -> Self {
17        Self { results }
18    }
19}