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