Skip to main content

memlink_msdk/
request.rs

1//! Request/Response types for memlink module calls.
2//!
3//! Re-exports types from memlink-protocol for module method
4//! invocations with support for tracing, deadlines, and serialization.
5
6pub use memlink_protocol::{Request, Response};
7
8#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
9pub struct CallArgs {
10    pub bytes: Vec<u8>,
11}
12
13impl CallArgs {
14    pub fn new(bytes: Vec<u8>) -> Self {
15        CallArgs { bytes }
16    }
17}