pub struct OptionRestrictionRegex {
pub label: Option<String>,
pub pattern: Option<String>,
}
Expand description
A regular expression representing a restriction on a string configuration option value.
Fields§
§label: Option<String>
A unique name representing this regular expression.
pattern: Option<String>
The regular expression pattern that a string configuration option value with this restriction must match.
Trait Implementations§
Source§impl Clone for OptionRestrictionRegex
impl Clone for OptionRestrictionRegex
Source§fn clone(&self) -> OptionRestrictionRegex
fn clone(&self) -> OptionRestrictionRegex
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 OptionRestrictionRegex
impl Debug for OptionRestrictionRegex
Source§impl Default for OptionRestrictionRegex
impl Default for OptionRestrictionRegex
Source§fn default() -> OptionRestrictionRegex
fn default() -> OptionRestrictionRegex
Returns the “default value” for a type. Read more
Source§impl PartialEq for OptionRestrictionRegex
impl PartialEq for OptionRestrictionRegex
impl StructuralPartialEq for OptionRestrictionRegex
Auto Trait Implementations§
impl Freeze for OptionRestrictionRegex
impl RefUnwindSafe for OptionRestrictionRegex
impl Send for OptionRestrictionRegex
impl Sync for OptionRestrictionRegex
impl Unpin for OptionRestrictionRegex
impl UnwindSafe for OptionRestrictionRegex
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