pub struct PatternProperty {
pub pattern: String,
pub type: TypeRef,
}Expand description
One entry of JSON Schema patternProperties: a property-name regex
paired with the schema that matching property values must satisfy.
Fields§
§pattern: StringThe raw ECMA-262 regular expression key. Generators targeting a
non-ECMA regex engine translate it, the same way they do for
PrimitiveConstraints::pattern.
type: TypeRefSchema that values under a matching property name must satisfy.
Trait Implementations§
Source§impl Clone for PatternProperty
impl Clone for PatternProperty
Source§fn clone(&self) -> PatternProperty
fn clone(&self) -> PatternProperty
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 PatternProperty
impl Debug for PatternProperty
Source§impl<'de> Deserialize<'de> for PatternProperty
impl<'de> Deserialize<'de> for PatternProperty
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
Source§impl PartialEq for PatternProperty
impl PartialEq for PatternProperty
Source§fn eq(&self, other: &PatternProperty) -> bool
fn eq(&self, other: &PatternProperty) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PatternProperty
impl Serialize for PatternProperty
impl StructuralPartialEq for PatternProperty
Auto Trait Implementations§
impl Freeze for PatternProperty
impl RefUnwindSafe for PatternProperty
impl Send for PatternProperty
impl Sync for PatternProperty
impl Unpin for PatternProperty
impl UnsafeUnpin for PatternProperty
impl UnwindSafe for PatternProperty
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