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 limits;
10pub mod merkle;
11pub mod note;
12pub mod nullifier;
13pub mod smt;
14pub mod status;
15pub mod storage_map;
16pub mod sync;
17pub mod transaction;
18
19pub trait MissingFieldHelper {
23 fn missing_field(field_name: &'static str) -> RpcConversionError;
24}
25
26impl<T: prost::Message> MissingFieldHelper for T {
27 fn missing_field(field_name: &'static str) -> RpcConversionError {
28 RpcConversionError::MissingFieldInProtobufRepresentation {
29 entity: type_name::<T>(),
30 field_name,
31 }
32 }
33}