From f1592883a2b53374304a288ffe04a7319d014b01 Mon Sep 17 00:00:00 2001 From: Able Date: Sat, 27 Nov 2021 22:02:15 -0600 Subject: [PATCH] url --- src/lib.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2ca2b65..107c88c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,14 @@ -pub struct Url; +#[derive(Debug)] +struct Url { + scheme: String, + user: String, + password: String, + host: String, + port: u16, + path: String, + query: String, + fragment: String, +} pub struct RGBA { red: u8, @@ -30,7 +40,6 @@ pub struct Blockquote { text: String, } -<<<<<<< HEAD pub struct Link { text: String, url: Url, @@ -43,7 +52,7 @@ pub struct Image { title: Option, link: Option, } -======= + pub enum Node { Header(Header), Paragraph(Vec), @@ -51,7 +60,6 @@ pub enum Node { } pub struct Document(Vec); ->>>>>>> d808ae46ad469d6024e76ad006f7b3e0832fe8cb // TODO: able take care of lists i am too drunk for this tonight