poke/january/src/structs/embed.rs

17 lines
274 B
Rust
Raw Normal View History

2023-12-10 11:28:44 +01:00
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,
}