Flesh out and properly feature lock fields on Attachment
This commit is contained in:
parent
b885e13922
commit
8fcd64f87d
|
@ -1,3 +1,4 @@
|
|||
use crate::types::Message;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::types::utils::Snowflake;
|
||||
|
@ -14,7 +15,10 @@ pub struct Attachment {
|
|||
pub proxy_url: String,
|
||||
pub height: Option<u64>,
|
||||
pub width: Option<u64>,
|
||||
pub message_id: Snowflake,
|
||||
#[cfg(feature = "sqlx")]
|
||||
pub message_id: Option<Snowflake>,
|
||||
#[cfg_attr(feature = "sqlx", sqlx(skip))]
|
||||
pub message: Option<Message>,
|
||||
pub ephemeral: Option<bool>,
|
||||
pub duration_secs: Option<f32>,
|
||||
pub waveform: Option<String>,
|
||||
|
|
Loading…
Reference in New Issue