make blob structs public
This commit is contained in:
parent
048ae36568
commit
67c6336b04
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue