atrium_api/tools/ozone/verification/
revoke_verifications.rs1pub const NSID: &str = "tools.ozone.verification.revokeVerifications";
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct InputData {
7 #[serde(skip_serializing_if = "core::option::Option::is_none")]
9 pub revoke_reason: core::option::Option<String>,
10 pub uris: Vec<String>,
12}
13pub type Input = crate::types::Object<InputData>;
14#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
15#[serde(rename_all = "camelCase")]
16pub struct OutputData {
17 pub failed_revocations: Vec<RevokeError>,
19 pub revoked_verifications: Vec<String>,
21}
22pub type Output = crate::types::Object<OutputData>;
23#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
24#[serde(tag = "error", content = "message")]
25pub enum Error {}
26impl std::fmt::Display for Error {
27 fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result {
28 Ok(())
29 }
30}
31#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
33#[serde(rename_all = "camelCase")]
34pub struct RevokeErrorData {
35 pub error: String,
37 pub uri: String,
39}
40pub type RevokeError = crate::types::Object<RevokeErrorData>;