pub struct StringField {
pub name: String,
pub enumeration: Option<Vec<String>>,
pub max_length: Option<usize>,
pub min_length: Option<usize>,
pub pattern: Option<Pattern>,
}Fields§
§name: String§enumeration: Option<Vec<String>>§max_length: Option<usize>§min_length: Option<usize>§pattern: Option<Pattern>Trait Implementations§
Source§impl Debug for StringField
impl Debug for StringField
Source§impl<'de> Deserialize<'de> for StringField
impl<'de> Deserialize<'de> for StringField
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
Source§impl Field for StringField
impl Field for StringField
const FIELD_TYPE: FieldType = FieldType::String
fn name(&self) -> String
fn constrains(&self) -> Vec<Box<dyn Constraint>>
Source§impl From<StringField> for FieldEnum
impl From<StringField> for FieldEnum
Source§fn from(value: StringField) -> Self
fn from(value: StringField) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StringField
impl RefUnwindSafe for StringField
impl Send for StringField
impl Sync for StringField
impl Unpin for StringField
impl UnwindSafe for StringField
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