Atproto, remove/disable lexicon module
This is temporary. Since I'm using my own types implementation the autocreated lexicons don't work. Currently deciding the best way to move forward.
This commit is contained in:
parent
cd2e03811e
commit
34719e7d01
14 changed files with 15 additions and 92 deletions
33
atproto/src/lexicons/myspoor/log/activity.rs
Normal file
33
atproto/src/lexicons/myspoor/log/activity.rs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
// @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: atrium_api::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()
|
||||
}
|
||||
}
|
||||
///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<ProgressIndexData>;
|
||||
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
|
||||
#[serde(tag = "$type")]
|
||||
pub enum RecordProgressRefs {
|
||||
#[serde(rename = "my.spoor.log.activity#progressIndex")]
|
||||
ProgressIndex(Box<ProgressIndex>),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue