make atproto struct fields public
This commit is contained in:
parent
e5563dfee5
commit
048ae36568
1 changed files with 11 additions and 11 deletions
|
@ -45,18 +45,18 @@ pub struct ATProtoServerCreateSession {
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
pub struct ExternalRecordEmbed {
|
pub struct ExternalRecordEmbed {
|
||||||
uri: String,
|
pub uri: String,
|
||||||
title: String,
|
pub title: String,
|
||||||
description: String,
|
pub description: String,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
thumb: Option<Blob>,
|
pub thumb: Option<Blob>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
pub struct ATprotoRepoCreateRecordEmbed {
|
pub struct ATprotoRepoCreateRecordEmbed {
|
||||||
#[serde(rename(serialize = "$type", deserialize = "$type"))]
|
#[serde(rename(serialize = "$type", deserialize = "$type"))]
|
||||||
embed_type: String,
|
pub embed_type: String,
|
||||||
external: ExternalRecordEmbed,
|
pub external: ExternalRecordEmbed,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ATprotoRepoCreateRecordEmbed {
|
impl ATprotoRepoCreateRecordEmbed {
|
||||||
|
@ -75,11 +75,11 @@ impl ATprotoRepoCreateRecordEmbed {
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
pub struct ATprotoRepoCreateRecordRecord {
|
pub struct ATprotoRepoCreateRecordRecord {
|
||||||
text: String,
|
pub text: String,
|
||||||
#[serde(rename(serialize = "createdAt", deserialize = "createdAt"))]
|
#[serde(rename(serialize = "createdAt", deserialize = "createdAt"))]
|
||||||
created_at: String,
|
pub created_at: String,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
embed: Option<ATprotoRepoCreateRecordEmbed>,
|
pub embed: Option<ATprotoRepoCreateRecordEmbed>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ATprotoRepoCreateRecordRecord {
|
impl ATprotoRepoCreateRecordRecord {
|
||||||
|
@ -94,8 +94,8 @@ impl ATprotoRepoCreateRecordRecord {
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
pub struct ATProtoRepoCreateRecord {
|
pub struct ATProtoRepoCreateRecord {
|
||||||
pub repo: String,
|
pub repo: String,
|
||||||
collection: String,
|
pub collection: String,
|
||||||
record: ATprotoRepoCreateRecordRecord,
|
pub record: ATprotoRepoCreateRecordRecord,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ATProtoRepoCreateRecord {
|
impl ATProtoRepoCreateRecord {
|
||||||
|
|
Loading…
Reference in a new issue