Set default tag type to Hashtag
This commit is contained in:
parent
227e3d3729
commit
848de1d685
1 changed files with 3 additions and 1 deletions
|
@ -31,12 +31,14 @@ pub struct Attachment {
|
|||
pub url: Option<String>,
|
||||
}
|
||||
|
||||
fn default_tag_type() -> String { HASHTAG.to_string() }
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct Tag {
|
||||
pub name: String,
|
||||
|
||||
#[serde(rename = "type")]
|
||||
#[serde(rename = "type", default = "default_tag_type")]
|
||||
pub tag_type: String,
|
||||
|
||||
pub href: Option<String>,
|
||||
|
|
Loading…
Reference in a new issue