pub struct StackInputValidation {
pub min_length: Option<u32>,
pub max_length: Option<u32>,
pub pattern: Option<String>,
pub format: Option<String>,
pub min: Option<String>,
pub max: Option<String>,
pub values: Option<Vec<String>>,
pub min_items: Option<u32>,
pub max_items: Option<u32>,
}Expand description
Portable stack input validation constraints.
Fields§
§min_length: Option<u32>Minimum string length.
max_length: Option<u32>Maximum string length.
pattern: Option<String>Portable whole-value regex pattern.
format: Option<String>Semantic format hint such as url.
min: Option<String>Minimum number.
max: Option<String>Maximum number.
values: Option<Vec<String>>Allowed string enum values.
min_items: Option<u32>Minimum string-list items.
max_items: Option<u32>Maximum string-list items.
Trait Implementations§
Source§impl Clone for StackInputValidation
impl Clone for StackInputValidation
Source§fn clone(&self) -> StackInputValidation
fn clone(&self) -> StackInputValidation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StackInputValidation
impl Debug for StackInputValidation
Source§impl<'de> Deserialize<'de> for StackInputValidation
impl<'de> Deserialize<'de> for StackInputValidation
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
impl Eq for StackInputValidation
Source§impl PartialEq for StackInputValidation
impl PartialEq for StackInputValidation
Source§fn eq(&self, other: &StackInputValidation) -> bool
fn eq(&self, other: &StackInputValidation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StackInputValidation
impl Serialize for StackInputValidation
impl StructuralPartialEq for StackInputValidation
Auto Trait Implementations§
impl Freeze for StackInputValidation
impl RefUnwindSafe for StackInputValidation
impl Send for StackInputValidation
impl Sync for StackInputValidation
impl Unpin for StackInputValidation
impl UnsafeUnpin for StackInputValidation
impl UnwindSafe for StackInputValidation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.