pub struct Verification<'a> {
pub created_at: Datetime,
pub display_name: CowStr<'a>,
pub handle: Handle<'a>,
pub subject: Did<'a>,
pub extra_data: Option<BTreeMap<SmolStr, Data<'a>>>,
}Expand description
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.
Fields§
§created_at: DatetimeDate of when the verification was created.
display_name: CowStr<'a>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.
handle: Handle<'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.
subject: Did<'a>DID of the subject the verification applies to.
extra_data: Option<BTreeMap<SmolStr, Data<'a>>>Implementations§
Source§impl<'a> Verification<'a>
impl<'a> Verification<'a>
Source§impl<'a> Verification<'a>
impl<'a> Verification<'a>
Sourcepub fn new() -> VerificationBuilder<'a, Empty>
pub fn new() -> VerificationBuilder<'a, Empty>
Create a new builder for this type
Trait Implementations§
Source§impl<'a> Clone for Verification<'a>
impl<'a> Clone for Verification<'a>
Source§fn clone(&self) -> Verification<'a>
fn clone(&self) -> Verification<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Collection for Verification<'_>
impl Collection for Verification<'_>
Source§const NSID: &'static str = "app.bsky.graph.verification"
const NSID: &'static str = "app.bsky.graph.verification"
The NSID for the Lexicon that defines the schema of records in this collection.
Source§type Record = VerificationRecord
type Record = VerificationRecord
A marker type implementing
XrpcResp that allows typed deserialization of records
from this collection. Used by AgentSessionExt::get_record to return properly typed responses.Source§impl<'a> Debug for Verification<'a>
impl<'a> Debug for Verification<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for Verification<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Verification<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<VerificationGetRecordOutput<'_>> for Verification<'_>
impl From<VerificationGetRecordOutput<'_>> for Verification<'_>
Source§fn from(output: VerificationGetRecordOutput<'_>) -> Self
fn from(output: VerificationGetRecordOutput<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoStatic for Verification<'a>
impl<'a> IntoStatic for Verification<'a>
Source§type Output = Verification<'static>
type Output = Verification<'static>
The “owned” variant of the type. For
Cow<'a, str>, this is Cow<'static, str>, for example.Source§fn into_static(self) -> Self::Output
fn into_static(self) -> Self::Output
Turns the value into an “owned” variant, which can then be returned, moved, etc. Read more
Source§impl<'a> LexiconSchema for Verification<'a>
impl<'a> LexiconSchema for Verification<'a>
Source§fn lexicon_doc() -> LexiconDoc<'static>
fn lexicon_doc() -> LexiconDoc<'static>
Generate the lexicon document for this type Read more
Source§fn validate(&self) -> Result<(), ConstraintError>
fn validate(&self) -> Result<(), ConstraintError>
Validate an instance against lexicon constraints Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether this type should be inlined vs referenced Read more
Source§impl<'a> PartialEq for Verification<'a>
impl<'a> PartialEq for Verification<'a>
Source§impl<'a> Serialize for Verification<'a>
impl<'a> Serialize for Verification<'a>
impl<'a> Eq for Verification<'a>
impl<'a> StructuralPartialEq for Verification<'a>
Auto Trait Implementations§
impl<'a> Freeze for Verification<'a>
impl<'a> RefUnwindSafe for Verification<'a>
impl<'a> Send for Verification<'a>
impl<'a> Sync for Verification<'a>
impl<'a> Unpin for Verification<'a>
impl<'a> UnsafeUnpin for Verification<'a>
impl<'a> UnwindSafe for Verification<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.