miden_client/rpc/domain/
mod.rs1use core::any::type_name;
2
3use super::errors::RpcConversionError;
4
5pub mod account;
6pub mod account_vault;
7pub mod block;
8pub mod digest;
9pub mod merkle;
10pub mod note;
11pub mod nullifier;
12pub mod smt;
13pub mod storage_map;
14pub mod sync;
15pub mod transaction;
16
17pub trait MissingFieldHelper {
21 fn missing_field(field_name: &'static str) -> RpcConversionError;
22}
23
24impl<T: prost::Message> MissingFieldHelper for T {
25 fn missing_field(field_name: &'static str) -> RpcConversionError {
26 RpcConversionError::MissingFieldInProtobufRepresentation {
27 entity: type_name::<T>(),
28 field_name,
29 }
30 }
31}