pub struct StringType {
pub default: Option<LiteralValue>,
pub enum_values: Option<Vec<String>>,
pub format: Option<String>,
pub max_length: Option<usize>,
pub min_length: Option<usize>,
pub pattern: Option<String>,
}Fields§
§default: Option<LiteralValue>§enum_values: Option<Vec<String>>§format: Option<String>§max_length: Option<usize>§min_length: Option<usize>§pattern: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for StringType
impl Clone for StringType
Source§fn clone(&self) -> StringType
fn clone(&self) -> StringType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StringType
impl Debug for StringType
Source§impl Default for StringType
impl Default for StringType
Source§fn default() -> StringType
fn default() -> StringType
Returns the “default value” for a type. Read more
Source§impl Display for StringType
impl Display for StringType
Source§impl PartialEq for StringType
impl PartialEq for StringType
impl StructuralPartialEq for StringType
Auto Trait Implementations§
impl Freeze for StringType
impl RefUnwindSafe for StringType
impl Send for StringType
impl Sync for StringType
impl Unpin for StringType
impl UnwindSafe for StringType
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