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§
Source§impl Clone for StringValidator
impl Clone for StringValidator
Source§fn clone(&self) -> StringValidator
fn clone(&self) -> StringValidator
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StringValidator
impl Debug for StringValidator
Source§impl Default for StringValidator
impl Default for StringValidator
Source§impl<'de> Deserialize<'de> for StringValidatorwhere
StringValidator: Default,
impl<'de> Deserialize<'de> for StringValidatorwhere
StringValidator: Default,
Source§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
Auto Trait Implementations§
impl Freeze for StringValidator
impl RefUnwindSafe for StringValidator
impl Send for StringValidator
impl Sync for StringValidator
impl Unpin for StringValidator
impl UnwindSafe for StringValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more