1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: blue.2048.verification.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 stats;
10
11/// Holds the signature for another record showing it has verified it to the best of it's ability and it should be trusted if the signatures match.
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 bon::Builder
22)]
23#[serde(rename_all = "camelCase")]
24pub struct VerificationRef<'a> {
25 pub created_at: jacquard_common::types::string::Datetime,
26 /// The at://uri for the public did:key to verify the remote 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).
27 #[serde(borrow)]
28 pub key_ref: jacquard_common::types::string::AtUri<'a>,
29 /// The at://uri for the record that is being verified.
30 #[serde(borrow)]
31 pub record_ref: jacquard_common::types::string::AtUri<'a>,
32 /// The public verifiable signature of the record. Serialization of the records valued
33 #[serde(borrow)]
34 #[builder(into)]
35 pub signature: jacquard_common::CowStr<'a>,
36 /// DID of the subject the verification applies to.
37 #[serde(borrow)]
38 pub subject: jacquard_common::types::string::Did<'a>,
39}