poke/january/src/structs/embed.rs
2023-12-10 10:28:44 +00:00

16 lines
274 B
Rust

use serde::Serialize;
use super::{
media::{Image, Video},
metadata::Metadata,
};
#[derive(Clone, Debug, Serialize)]
#[serde(tag = "type")]
#[allow(clippy::large_enum_variant)]
pub enum Embed {
Website(Metadata),
Image(Image),
Video(Video),
None,
}