jacquard_api/place_stream/
key.rs

1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: place.stream.key
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8///Record linking an atproto identity with a stream signing key
9#[jacquard_derive::lexicon]
10#[derive(
11    serde::Serialize,
12    serde::Deserialize,
13    Debug,
14    Clone,
15    PartialEq,
16    Eq,
17    jacquard_derive::IntoStatic
18)]
19#[serde(rename_all = "camelCase")]
20pub struct Key<'a> {
21    ///Client-declared timestamp when this key was created.
22    pub created_at: jacquard_common::types::string::Datetime,
23    ///The name of the client that created this key.
24    #[serde(skip_serializing_if = "std::option::Option::is_none")]
25    #[serde(borrow)]
26    pub created_by: std::option::Option<jacquard_common::CowStr<'a>>,
27    ///The did:key signing key for the stream.
28    #[serde(borrow)]
29    pub signing_key: jacquard_common::CowStr<'a>,
30}
31
32impl jacquard_common::types::collection::Collection for Key<'_> {
33    const NSID: &'static str = "place.stream.key";
34}