make blob structs public

This commit is contained in:
Denis-Cosmin NUTIU 2024-12-30 22:25:17 +02:00
parent 048ae36568
commit 67c6336b04

View file

@ -3,13 +3,13 @@ use post::NewsPost;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)] #[derive(Serialize, Deserialize, Debug)]
struct BlobLinkRef { pub struct BlobLinkRef {
#[serde(rename = "$link")] #[serde(rename = "$link")]
pub _link: String, pub _link: String,
} }
#[derive(Serialize, Deserialize, Debug)] #[derive(Serialize, Deserialize, Debug)]
struct Blob { pub struct Blob {
#[serde(rename = "$type")] #[serde(rename = "$type")]
pub _type: String, pub _type: String,
#[serde(rename = "ref")] #[serde(rename = "ref")]
@ -33,7 +33,7 @@ impl Blob {
} }
#[derive(Serialize, Deserialize, Debug)] #[derive(Serialize, Deserialize, Debug)]
struct BlobResponse { pub struct BlobResponse {
pub blob: Blob, pub blob: Blob,
} }