A better Rust ATProto crate
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: blue.2048.key.defs 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8pub mod game; 9pub mod player; 10 11///A record that holds a did:key used to verify records. Use the collection to know the type of verification. Example blue.2048.key.game is for blue.2048.game records 12#[jacquard_derive::lexicon] 13#[derive( 14 serde::Serialize, 15 serde::Deserialize, 16 Debug, 17 Clone, 18 PartialEq, 19 Eq, 20 jacquard_derive::IntoStatic 21)] 22#[serde(rename_all = "camelCase")] 23pub struct Key<'a> { 24 pub created_at: jacquard_common::types::string::Datetime, 25 ///A did:key used to verify records came from an at://2048 authority 26 #[serde(borrow)] 27 pub key: jacquard_common::CowStr<'a>, 28} 29 30///a signature for an at://2048 record meaning it has been verified by a service. Most likely @2048.blue 31#[jacquard_derive::lexicon] 32#[derive( 33 serde::Serialize, 34 serde::Deserialize, 35 Debug, 36 Clone, 37 PartialEq, 38 Eq, 39 jacquard_derive::IntoStatic 40)] 41#[serde(rename_all = "camelCase")] 42pub struct SignatureRef<'a> { 43 ///The at://uri for the public did:key to verify this record. This also counts as the authority of the verification (example @2048.blue). As well as the type of verification by the collection name (blue.2048.key.game). 44 #[serde(borrow)] 45 pub at_uri: jacquard_common::CowStr<'a>, 46 pub created_at: jacquard_common::types::string::Datetime, 47 ///The public verifiable signature of the record. Serialization of the records value minus the signature field 48 #[serde(borrow)] 49 pub signature: jacquard_common::CowStr<'a>, 50}