moved attachments and campaingn to others
This commit is contained in:
4 files changed
+4
-4
No files matched your search
@@ -0,0 +1,10 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "PascalCase")]
|
||||
pub struct AttachmentInfo {
|
||||
pub id: String,
|
||||
pub name: String,
|
||||
pub r#type: String,
|
||||
pub size: u64,
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "PascalCase")]
|
||||
pub struct Campaign {
|
||||
pub message_id: i64,
|
||||
pub priority: i64,
|
||||
pub authorized: bool,
|
||||
pub consent_required: bool,
|
||||
pub delayed_show: i64,
|
||||
pub image_url: String,
|
||||
pub link_url: Option<String>,
|
||||
pub salt: Option<String>,
|
||||
}
|
||||
@@ -1,5 +1,9 @@
|
||||
mod api_info;
|
||||
mod attachment;
|
||||
mod campaign;
|
||||
mod endpoints;
|
||||
|
||||
pub use api_info::*;
|
||||
pub use attachment::*;
|
||||
pub use campaign::*;
|
||||
pub use endpoints::*;
|
||||
Reference in new issue
Block a user