#[non_exhaustive]pub struct RegexpPattern {
pub pattern: String,
/* private fields */
}Expand description
The regular expression (regex) validator for parameter values.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pattern: StringRequired. The regex pattern to match the values of the parameter with.
Implementations§
Trait Implementations§
Source§impl Clone for RegexpPattern
impl Clone for RegexpPattern
Source§fn clone(&self) -> RegexpPattern
fn clone(&self) -> RegexpPattern
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 RegexpPattern
impl Debug for RegexpPattern
Source§impl Default for RegexpPattern
impl Default for RegexpPattern
Source§fn default() -> RegexpPattern
fn default() -> RegexpPattern
Returns the “default value” for a type. Read more
Source§impl Message for RegexpPattern
impl Message for RegexpPattern
Source§impl PartialEq for RegexpPattern
impl PartialEq for RegexpPattern
impl StructuralPartialEq for RegexpPattern
Auto Trait Implementations§
impl Freeze for RegexpPattern
impl RefUnwindSafe for RegexpPattern
impl Send for RegexpPattern
impl Sync for RegexpPattern
impl Unpin for RegexpPattern
impl UnwindSafe for RegexpPattern
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