A better Rust ATProto crate
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: blue.2048.game 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8///A declaration of an instance of a at://2048 game 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 Game<'a> { 21 ///The player no longer has any moves left 22 pub completed: bool, 23 pub created_at: jacquard_common::types::string::Datetime, 24 ///The game's current score 25 pub current_score: i64, 26 ///This is the recording of the game. Like chess notation, but for 2048 27 #[serde(borrow)] 28 pub seeded_recording: jacquard_common::CowStr<'a>, 29 ///The sync status of this record with the users AT Protocol repo. 30 #[serde(borrow)] 31 pub sync_status: crate::blue__2048::SyncStatus<'a>, 32 ///The player has found a 2048 tile (they have won) 33 pub won: bool, 34} 35 36impl jacquard_common::types::collection::Collection for Game<'_> { 37 const NSID: &'static str = "blue.2048.game"; 38}