27 lines
1.3 KiB
Rust
27 lines
1.3 KiB
Rust
|
|
// @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<atrium_api::types::string::Datetime>,
|
||
|
|
pub progress: atrium_api::types::Union<RecordProgressRefs>,
|
||
|
|
pub session: crate::com::atproto::repo::strong_ref::Main,
|
||
|
|
}
|
||
|
|
pub type Record = atrium_api::types::Object<RecordData>;
|
||
|
|
impl From<atrium_api::types::Unknown> for RecordData {
|
||
|
|
fn from(value: atrium_api::types::Unknown) -> Self {
|
||
|
|
Self::try_from_unknown(value).unwrap()
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
|
||
|
|
#[serde(tag = "$type")]
|
||
|
|
pub enum RecordProgressRefs {
|
||
|
|
#[serde(rename = "my.spoor.log.activity#indexProgress")]
|
||
|
|
MySpoorLogActivityIndexProgress(Box<crate::my::spoor::log::activity::IndexProgress>),
|
||
|
|
}
|