pub struct IdentityData {
pub did: Did,
pub handle: Option<Handle>,
pub seq: i64,
pub time: Datetime,
}
Expand description
Represents a change to an account’s identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.
Fields§
§did: Did
§handle: Option<Handle>
The current handle for the account, or ‘handle.invalid’ if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details.
seq: i64
§time: Datetime
Trait Implementations§
Source§impl Clone for IdentityData
impl Clone for IdentityData
Source§fn clone(&self) -> IdentityData
fn clone(&self) -> IdentityData
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 Debug for IdentityData
impl Debug for IdentityData
Source§impl<'de> Deserialize<'de> for IdentityData
impl<'de> Deserialize<'de> for IdentityData
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 PartialEq for IdentityData
impl PartialEq for IdentityData
Source§impl Serialize for IdentityData
impl Serialize for IdentityData
impl Eq for IdentityData
impl StructuralPartialEq for IdentityData
Auto Trait Implementations§
impl Freeze for IdentityData
impl RefUnwindSafe for IdentityData
impl Send for IdentityData
impl Sync for IdentityData
impl Unpin for IdentityData
impl UnwindSafe for IdentityData
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§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.