add github webhook support

This commit is contained in:
Zomatree
2022-11-27 06:52:44 +00:00
parent 5cb2320760
commit c826d8cf07
3 changed files with 78 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ pub struct Reply {
}
/// Representation of a text embed before it is sent.
#[derive(Validate, Serialize, Deserialize, JsonSchema, Clone, Debug)]
#[derive(Validate, Serialize, Deserialize, JsonSchema, Clone, Debug, Default)]
pub struct SendableEmbed {
#[validate(length(min = 1, max = 128))]
pub icon_url: Option<String>,