Skip to main content

ic_query/sns/report/model/requests/
lookup.rs

1//! Module: sns::report::model::requests::lookup
2//!
3//! Responsibility: shared request DTO for direct SNS lookup reports.
4//! Does not own: command option parsing, source resolution, or rendering.
5//! Boundary: carries validated lookup inputs into one SNS report builder.
6
7///
8/// SnsLookupRequest
9///
10/// Shared request accepted by direct SNS info, token, and params builders.
11///
12
13#[derive(Clone, Debug, Eq, PartialEq)]
14pub struct SnsLookupRequest {
15    pub network: String,
16    pub source_endpoint: String,
17    pub now_unix_secs: u64,
18    pub input: String,
19}
20
21/// Request accepted by the SNS info report builder.
22pub type SnsInfoRequest = SnsLookupRequest;
23
24/// Request accepted by the SNS governance-parameters report builder.
25pub type SnsParamsRequest = SnsLookupRequest;
26
27/// Request accepted by the SNS token report builder.
28pub type SnsTokenRequest = SnsLookupRequest;