From 048ae36568cbe38076e7b16fe36e35ef8a589b9e Mon Sep 17 00:00:00 2001 From: Denis-Cosmin NUTIU Date: Mon, 30 Dec 2024 22:20:54 +0200 Subject: [PATCH] make atproto struct fields public --- bot/src/bluesky/atproto.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/bot/src/bluesky/atproto.rs b/bot/src/bluesky/atproto.rs index 91753f9..6abe557 100644 --- a/bot/src/bluesky/atproto.rs +++ b/bot/src/bluesky/atproto.rs @@ -45,18 +45,18 @@ pub struct ATProtoServerCreateSession { #[derive(Serialize, Deserialize, Debug)] pub struct ExternalRecordEmbed { - uri: String, - title: String, - description: String, + pub uri: String, + pub title: String, + pub description: String, #[serde(skip_serializing_if = "Option::is_none")] - thumb: Option, + pub thumb: Option, } #[derive(Serialize, Deserialize, Debug)] pub struct ATprotoRepoCreateRecordEmbed { #[serde(rename(serialize = "$type", deserialize = "$type"))] - embed_type: String, - external: ExternalRecordEmbed, + pub embed_type: String, + pub external: ExternalRecordEmbed, } impl ATprotoRepoCreateRecordEmbed { @@ -75,11 +75,11 @@ impl ATprotoRepoCreateRecordEmbed { #[derive(Serialize, Deserialize, Debug)] pub struct ATprotoRepoCreateRecordRecord { - text: String, + pub text: String, #[serde(rename(serialize = "createdAt", deserialize = "createdAt"))] - created_at: String, + pub created_at: String, #[serde(skip_serializing_if = "Option::is_none")] - embed: Option, + pub embed: Option, } impl ATprotoRepoCreateRecordRecord { @@ -94,8 +94,8 @@ impl ATprotoRepoCreateRecordRecord { #[derive(Serialize, Deserialize, Debug)] pub struct ATProtoRepoCreateRecord { pub repo: String, - collection: String, - record: ATprotoRepoCreateRecordRecord, + pub collection: String, + pub record: ATprotoRepoCreateRecordRecord, } impl ATProtoRepoCreateRecord {