misc: remove warnings for mandatory fields

This commit is contained in:
meeg_leeto 2022-05-12 18:27:20 +01:00
parent f49e700dd4
commit ce4706c4b1
1 changed files with 2 additions and 0 deletions

View File

@ -225,6 +225,7 @@ mod service {
#[derive(Validator)]
#[validator(http_url(local(NotAllow)))]
#[derive(Clone, Debug)]
#[allow(dead_code)]
/// A struct representing a URL.
pub struct HttpUrl {
url: validators::url::Url,
@ -233,6 +234,7 @@ mod service {
#[derive(Validator)]
#[validator(domain(ipv4(Allow), local(NotAllow), at_least_two_labels(Must), port(Allow)))]
#[allow(dead_code)]
pub struct Domain {
domain: String,
port: Option<u16>,