Struct stencila_schema::StringValidator [−][src]
pub struct StringValidator {
pub type_: StringValidator_,
pub id: Option<Box<String>>,
pub max_length: Option<u32>,
pub min_length: Option<u32>,
pub pattern: Option<Box<String>>,
}
Expand description
A schema specifying constraints on a string node.
Fields
type_: StringValidator_
The name of this type
id: Option<Box<String>>
The identifier for this item.
max_length: Option<u32>
The maximum length for a string node.
min_length: Option<u32>
The minimum length for a string node.
pattern: Option<Box<String>>
A regular expression that a string node must match.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for StringValidator
impl Send for StringValidator
impl Sync for StringValidator
impl Unpin for StringValidator
impl UnwindSafe for StringValidator
Blanket Implementations
Mutably borrows from an owned value. Read more