mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-02 12:48:19 +01:00
16 lines
274 B
Rust
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,
|
|
}
|