From 461ba82620ce8373b1d47e1e45b23f4ff358e811 Mon Sep 17 00:00:00 2001 From: sam lovelace Date: Sun, 28 Nov 2021 03:36:28 +0000 Subject: [PATCH] added Url, Link and Image --- src/lib.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 6f22d37..2111de8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,5 @@ +pub struct Url; + pub struct RGBA { red: u8, green: u8, @@ -26,6 +28,19 @@ pub struct Blockquote { text: String, } +pub struct Link { + text: String, + url: Url, + title: Option, +} + +pub struct Image { + text: String, + image: Url, + title: Option, + link: Option, +} + // TODO: able take care of lists i am too drunk for this tonight