post: Make url optional and add optional alt
This commit is contained in:
parent
cf8d664349
commit
5d1ac75f10
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ pub struct PostSample {
|
||||||
pub has: bool,
|
pub has: bool,
|
||||||
pub width: ImageDimension,
|
pub width: ImageDimension,
|
||||||
pub height: ImageDimension,
|
pub height: ImageDimension,
|
||||||
pub url: String
|
pub url: Option<String>,
|
||||||
|
pub alt: Option<String>
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(serde::Serialize, serde::Deserialize, Clone, Debug)]
|
#[derive(serde::Serialize, serde::Deserialize, Clone, Debug)]
|
||||||
|
|
Loading…
Reference in a new issue