pub struct Key<'a> {
pub created_at: Datetime,
pub created_by: Option<CowStr<'a>>,
pub signing_key: CowStr<'a>,
pub extra_data: BTreeMap<SmolStr, Data<'a>>,
}Expand description
Record linking an atproto identity with a stream signing key
Fields§
§created_at: DatetimeClient-declared timestamp when this key was created.
created_by: Option<CowStr<'a>>The name of the client that created this key.
signing_key: CowStr<'a>The did:key signing key for the stream.
extra_data: BTreeMap<SmolStr, Data<'a>>Trait Implementations§
Source§impl Collection for Key<'_>
impl Collection for Key<'_>
Source§const NSID: &'static str = "place.stream.key"
const NSID: &'static str = "place.stream.key"
The NSID for the Lexicon that defines the schema of records in this collection.
Source§type Record = KeyRecord
type Record = KeyRecord
A marker type implementing
XrpcResp that allows typed deserialization of records
from this collection. Used by [Agent::get_record] to return properly typed responses.Source§impl<'de: 'a, 'a> Deserialize<'de> for Key<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Key<'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<KeyGetRecordOutput<'_>> for Key<'_>
impl From<KeyGetRecordOutput<'_>> for Key<'_>
Source§fn from(output: KeyGetRecordOutput<'_>) -> Self
fn from(output: KeyGetRecordOutput<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoStatic for Key<'a>
impl<'a> IntoStatic for Key<'a>
impl<'a> Eq for Key<'a>
impl<'a> StructuralPartialEq for Key<'a>
Auto Trait Implementations§
impl<'a> Freeze for Key<'a>
impl<'a> RefUnwindSafe for Key<'a>
impl<'a> Send for Key<'a>
impl<'a> Sync for Key<'a>
impl<'a> Unpin for Key<'a>
impl<'a> UnwindSafe for Key<'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§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.