isbnlib/jsonb/
link_block.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use serde::{Serialize, Deserialize};

#[derive(
    Serialize,
    Deserialize,
    Debug,
    Clone,
    PartialEq,
)]
pub struct LinkBlock {
    pub url: String,
    #[serde(rename(deserialize = "type"))]
    pub value_type: LinkType,
    pub title: String
}

#[derive(
    Serialize,
    Deserialize,
    Debug,
    Clone,
    PartialEq,
)]
pub struct LinkType {
    pub key: String
}