Trait FieldMeta

Source
pub trait FieldMeta {
    type Type;

    const LABEL: &'static str;
    const REQUIRED: bool;
    const VALIDATE: fn(&Self::Type) -> Option<Cow<'static, str>>;
}

Required Associated Constants§

Source

const LABEL: &'static str

标签

Source

const REQUIRED: bool

是否必须

Source

const VALIDATE: fn(&Self::Type) -> Option<Cow<'static, str>>

校验函数

Required Associated Types§

Source

type Type

字段类型

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§