atrium_api/tools/ozone/verification/
defs.rs

1// @generated - This file is generated by atrium-codegen. DO NOT EDIT.
2//!Definitions for the `tools.ozone.verification.defs` namespace.
3///Verification data for the associated subject.
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
5#[serde(rename_all = "camelCase")]
6pub struct VerificationViewData {
7    ///Timestamp when the verification was created.
8    pub created_at: crate::types::string::Datetime,
9    ///Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying.
10    pub display_name: String,
11    ///Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying.
12    pub handle: crate::types::string::Handle,
13    ///The user who issued this verification.
14    pub issuer: crate::types::string::Did,
15    #[serde(skip_serializing_if = "core::option::Option::is_none")]
16    pub issuer_profile:
17        core::option::Option<crate::types::Union<VerificationViewIssuerProfileRefs>>,
18    #[serde(skip_serializing_if = "core::option::Option::is_none")]
19    pub issuer_repo: core::option::Option<crate::types::Union<VerificationViewIssuerRepoRefs>>,
20    ///Describes the reason for revocation, also indicating that the verification is no longer valid.
21    #[serde(skip_serializing_if = "core::option::Option::is_none")]
22    pub revoke_reason: core::option::Option<String>,
23    ///Timestamp when the verification was revoked.
24    #[serde(skip_serializing_if = "core::option::Option::is_none")]
25    pub revoked_at: core::option::Option<crate::types::string::Datetime>,
26    ///The user who revoked this verification.
27    #[serde(skip_serializing_if = "core::option::Option::is_none")]
28    pub revoked_by: core::option::Option<crate::types::string::Did>,
29    ///The subject of the verification.
30    pub subject: crate::types::string::Did,
31    #[serde(skip_serializing_if = "core::option::Option::is_none")]
32    pub subject_profile:
33        core::option::Option<crate::types::Union<VerificationViewSubjectProfileRefs>>,
34    #[serde(skip_serializing_if = "core::option::Option::is_none")]
35    pub subject_repo: core::option::Option<crate::types::Union<VerificationViewSubjectRepoRefs>>,
36    ///The AT-URI of the verification record.
37    pub uri: String,
38}
39pub type VerificationView = crate::types::Object<VerificationViewData>;
40#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
41#[serde(tag = "$type")]
42pub enum VerificationViewIssuerProfileRefs {}
43#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
44#[serde(tag = "$type")]
45pub enum VerificationViewIssuerRepoRefs {
46    #[serde(rename = "tools.ozone.moderation.defs#repoViewDetail")]
47    ToolsOzoneModerationDefsRepoViewDetail(
48        Box<crate::tools::ozone::moderation::defs::RepoViewDetail>,
49    ),
50    #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")]
51    ToolsOzoneModerationDefsRepoViewNotFound(
52        Box<crate::tools::ozone::moderation::defs::RepoViewNotFound>,
53    ),
54}
55#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
56#[serde(tag = "$type")]
57pub enum VerificationViewSubjectProfileRefs {}
58#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
59#[serde(tag = "$type")]
60pub enum VerificationViewSubjectRepoRefs {
61    #[serde(rename = "tools.ozone.moderation.defs#repoViewDetail")]
62    ToolsOzoneModerationDefsRepoViewDetail(
63        Box<crate::tools::ozone::moderation::defs::RepoViewDetail>,
64    ),
65    #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")]
66    ToolsOzoneModerationDefsRepoViewNotFound(
67        Box<crate::tools::ozone::moderation::defs::RepoViewNotFound>,
68    ),
69}