// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: tools.ozone.verification.defs // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. pub mod grant_verifications; pub mod list_verifications; pub mod revoke_verifications; /// Verification data for the associated subject. #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic, bon::Builder )] #[serde(rename_all = "camelCase")] pub struct VerificationView<'a> { /// Timestamp when the verification was created. pub created_at: jacquard_common::types::string::Datetime, /// 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. #[serde(borrow)] #[builder(into)] pub display_name: jacquard_common::CowStr<'a>, /// 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. #[serde(borrow)] pub handle: jacquard_common::types::string::Handle<'a>, /// The user who issued this verification. #[serde(borrow)] pub issuer: jacquard_common::types::string::Did<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] #[serde(borrow)] pub issuer_profile: Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] #[serde(borrow)] pub issuer_repo: Option>, /// Describes the reason for revocation, also indicating that the verification is no longer valid. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] #[serde(borrow)] pub revoke_reason: Option>, /// Timestamp when the verification was revoked. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] pub revoked_at: Option, /// The user who revoked this verification. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] #[serde(borrow)] pub revoked_by: Option>, /// The subject of the verification. #[serde(borrow)] pub subject: jacquard_common::types::string::Did<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] #[serde(borrow)] pub subject_profile: Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[builder(into)] #[serde(borrow)] pub subject_repo: Option>, /// The AT-URI of the verification record. #[serde(borrow)] pub uri: jacquard_common::types::string::AtUri<'a>, } #[jacquard_derive::open_union] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(tag = "$type")] #[serde(bound(deserialize = "'de: 'a"))] pub enum VerificationViewIssuerRepo<'a> { #[serde(rename = "tools.ozone.moderation.defs#repoViewDetail")] RepoViewDetail(Box>), #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")] RepoViewNotFound(Box>), } #[jacquard_derive::open_union] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(tag = "$type")] #[serde(bound(deserialize = "'de: 'a"))] pub enum VerificationViewSubjectRepo<'a> { #[serde(rename = "tools.ozone.moderation.defs#repoViewDetail")] RepoViewDetail(Box>), #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")] RepoViewNotFound(Box>), }