pub struct CharsetValidation {
pub alphabetic: Option<bool>,
pub numeric: Option<bool>,
pub alphanumeric: Option<bool>,
pub ascii_printable: Option<bool>,
pub allowed_chars: Option<String>,
pub forbidden_chars: Option<String>,
}
Expand description
Character set validation options
Fields§
§alphabetic: Option<bool>
Allow alphabetic characters
numeric: Option<bool>
Allow numeric characters
alphanumeric: Option<bool>
Allow alphanumeric characters
ascii_printable: Option<bool>
Allow ASCII printable characters
allowed_chars: Option<String>
Specific allowed characters
forbidden_chars: Option<String>
Specific forbidden characters
Trait Implementations§
Source§impl Clone for CharsetValidation
impl Clone for CharsetValidation
Source§fn clone(&self) -> CharsetValidation
fn clone(&self) -> CharsetValidation
Returns a duplicate 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 CharsetValidation
impl Debug for CharsetValidation
Source§impl Default for CharsetValidation
impl Default for CharsetValidation
Source§fn default() -> CharsetValidation
fn default() -> CharsetValidation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CharsetValidation
impl<'de> Deserialize<'de> for CharsetValidation
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 CharsetValidation
impl RefUnwindSafe for CharsetValidation
impl Send for CharsetValidation
impl Sync for CharsetValidation
impl Unpin for CharsetValidation
impl UnwindSafe for CharsetValidation
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