Make some fields Option enum
This commit is contained in:
parent
59d512cdce
commit
583031e64f
|
@ -19,7 +19,7 @@ pub struct Attachment {
|
|||
pub waveform: Option<String>,
|
||||
#[serde(skip_serializing)]
|
||||
#[cfg_attr(feature = "sqlx", sqlx(default))]
|
||||
pub content: Vec<u8>,
|
||||
pub content: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
|
|
|
@ -15,10 +15,10 @@ pub struct Message {
|
|||
pub channel_id: Snowflake,
|
||||
#[cfg_attr(feature = "sqlx", sqlx(skip))]
|
||||
pub author: PublicUser,
|
||||
pub content: String,
|
||||
pub content: Option<String>,
|
||||
pub timestamp: String,
|
||||
pub edited_timestamp: Option<String>,
|
||||
pub tts: bool,
|
||||
pub tts: Option<bool>,
|
||||
pub mention_everyone: bool,
|
||||
#[cfg_attr(feature = "sqlx", sqlx(skip))]
|
||||
pub mentions: Option<Vec<User>>,
|
||||
|
|
Loading…
Reference in New Issue