diff options
| author | Fuwn <[email protected]> | 2024-06-29 12:13:59 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-29 12:13:59 +0000 |
| commit | 5d9579dd6beb38892053c68495e93a78f83a5fcc (patch) | |
| tree | f35f936583a412f819f009442c54b88b6785a274 | |
| parent | fix(ast): optional whitespace following heading markers (diff) | |
| download | germ-5d9579dd6beb38892053c68495e93a78f83a5fcc.tar.xz germ-5d9579dd6beb38892053c68495e93a78f83a5fcc.zip | |
feat: derive all for public typesv0.4.4
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | src/ast/container.rs | 2 | ||||
| -rw-r--r-- | src/convert.rs | 2 | ||||
| -rw-r--r-- | src/meta.rs | 2 | ||||
| -rw-r--r-- | src/request/response.rs | 2 | ||||
| -rw-r--r-- | src/request/status.rs | 2 |
6 files changed, 6 insertions, 6 deletions
@@ -2,7 +2,7 @@ [package] name = "germ" -version = "0.4.3" +version = "0.4.4" authors = ["Fuwn <[email protected]>"] edition = "2021" description = "The Ultimate Gemini Toolkit." diff --git a/src/ast/container.rs b/src/ast/container.rs index 4f41f9d..c8f9ecf 100644 --- a/src/ast/container.rs +++ b/src/ast/container.rs @@ -25,7 +25,7 @@ use super::Node; /// ```rust /// let _ = germ::ast::Ast::from_string(r#"=> gemini://gem.rest/ GemRest"#); /// ``` -#[derive(Clone)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Ast { inner: Vec<Node>, } diff --git a/src/convert.rs b/src/convert.rs index f9262f7..c42bbc3 100644 --- a/src/convert.rs +++ b/src/convert.rs @@ -26,7 +26,7 @@ mod markdown; #[cfg(feature = "macros")] mod macros; /// Different targets to convert Gemtext to -#[derive(Clone)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] pub enum Target { /// Convert Gemtext to HTML HTML, diff --git a/src/meta.rs b/src/meta.rs index e9a80f1..dca963a 100644 --- a/src/meta.rs +++ b/src/meta.rs @@ -20,7 +20,7 @@ use std::{borrow::Cow, collections::HashMap, fmt::Display}; /// Structure-ize a Gemini response's meta section into it's mime type and it's /// parameters. -#[derive(Debug, Default, Clone)] +#[derive(Debug, Default, Clone, PartialEq, Eq)] pub struct Meta { /// The mime type of a Gemini response mime: String, diff --git a/src/request/response.rs b/src/request/response.rs index c676d28..8f7ba48 100644 --- a/src/request/response.rs +++ b/src/request/response.rs @@ -22,7 +22,7 @@ use { std::{borrow::Cow, fmt::Write}, }; -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq)] pub struct Response { status: Status, meta: String, diff --git a/src/request/status.rs b/src/request/status.rs index c18f171..557171a 100644 --- a/src/request/status.rs +++ b/src/request/status.rs @@ -28,7 +28,7 @@ use std::{fmt, fmt::Formatter}; /// assert_eq!(Status::from(10), Status::Input); /// assert_eq!(i32::from(Status::Input), 10); /// ``` -#[derive(Debug, PartialEq, Clone, Eq)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] pub enum Status { Input, SensitiveInput, |