misc: remove warnings for mandatory fields
This commit is contained in:
parent
f49e700dd4
commit
ce4706c4b1
|
@ -225,6 +225,7 @@ mod service {
|
||||||
#[derive(Validator)]
|
#[derive(Validator)]
|
||||||
#[validator(http_url(local(NotAllow)))]
|
#[validator(http_url(local(NotAllow)))]
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
|
#[allow(dead_code)]
|
||||||
/// A struct representing a URL.
|
/// A struct representing a URL.
|
||||||
pub struct HttpUrl {
|
pub struct HttpUrl {
|
||||||
url: validators::url::Url,
|
url: validators::url::Url,
|
||||||
|
@ -233,6 +234,7 @@ mod service {
|
||||||
|
|
||||||
#[derive(Validator)]
|
#[derive(Validator)]
|
||||||
#[validator(domain(ipv4(Allow), local(NotAllow), at_least_two_labels(Must), port(Allow)))]
|
#[validator(domain(ipv4(Allow), local(NotAllow), at_least_two_labels(Must), port(Allow)))]
|
||||||
|
#[allow(dead_code)]
|
||||||
pub struct Domain {
|
pub struct Domain {
|
||||||
domain: String,
|
domain: String,
|
||||||
port: Option<u16>,
|
port: Option<u16>,
|
||||||
|
|
Loading…
Reference in New Issue