// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. //!Definitions for the `my.spoor.log.activity` namespace. use atrium_api::types::TryFromUnknown; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct RecordData { ///Client-declared timestamp for when this activity was created pub created_at: atrium_api::types::string::Datetime, ///User-declared timestamp for when they performed the activity. Null implies unknown time. #[serde(skip_serializing_if = "core::option::Option::is_none")] pub performed_at: core::option::Option, pub progress: atrium_api::types::Union, pub session: atrium_api::com::atproto::repo::strong_ref::Main, } pub type Record = atrium_api::types::Object; impl From for RecordData { fn from(value: atrium_api::types::Unknown) -> Self { Self::try_from_unknown(value).unwrap() } } ///The index of the content consumed. Content must be indexable #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct ProgressIndexData { pub index: i64, } pub type ProgressIndex = atrium_api::types::Object; #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "$type")] pub enum RecordProgressRefs { #[serde(rename = "my.spoor.log.activity#progressIndex")] ProgressIndex(Box), }