A better Rust ATProto crate
at oauth 2.0 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: app.bsky.graph.verification 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8///Record declaring a verification relationship between two accounts. Verifications are only considered valid by an app if issued by an account the app considers trusted. 9#[jacquard_derive::lexicon] 10#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11#[serde(rename_all = "camelCase")] 12pub struct Verification<'a> { 13 ///Date of when the verification was created. 14 pub created_at: jacquard_common::types::string::Datetime, 15 ///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. 16 #[serde(borrow)] 17 pub display_name: jacquard_common::CowStr<'a>, 18 ///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. 19 #[serde(borrow)] 20 pub handle: jacquard_common::types::string::Handle<'a>, 21 ///DID of the subject the verification applies to. 22 #[serde(borrow)] 23 pub subject: jacquard_common::types::string::Did<'a>, 24} 25 26impl jacquard_common::types::collection::Collection for Verification<'_> { 27 const NSID: &'static str = "app.bsky.graph.verification"; 28} 29 30impl jacquard_common::IntoStatic for Verification<'_> { 31 type Output = Verification<'static>; 32 fn into_static(self) -> Self::Output { 33 Verification { 34 created_at: self.created_at.into_static(), 35 display_name: self.display_name.into_static(), 36 handle: self.handle.into_static(), 37 subject: self.subject.into_static(), 38 extra_data: self.extra_data.into_static(), 39 } 40 } 41}