moved attachments and campaingn to others

This commit is contained in:
vextrixes committed 2026-10-31 15:48:29 +01:00
1 parent 4433026595
commit 16cc34d2a7
4 files changed
+4 -4

No files matched your search

+10
View File
@@ -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,
}
+14
View File
@@ -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>,
}
+4
View File
@@ -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::*;