pub enum PropertyKind {
String {
min_length: Option<u64>,
max_length: Option<u64>,
format: Option<String>,
enum_values: Option<Vec<String>>,
default: Option<String>,
},
Integer {
default: Option<i64>,
},
Number {
default: Option<f64>,
},
Boolean {
default: Option<bool>,
},
Array {
element: ArrayElement,
},
}Variants§
String
Fields
Integer
Number
Boolean
Array
R6 step 3: an array of bare scalars. The element is an
ArrayElement, not a boxed PropertyKind, so the type itself
cannot express a nested array, an array of objects, or a
constrained element — D1’s admitted shape is structural rather
than merely validated.
Fields
§
element: ArrayElementImplementations§
Source§impl PropertyKind
impl PropertyKind
Sourcepub fn has_default(&self) -> bool
pub fn has_default(&self) -> bool
Whether the property carries a declared default (any type).
Trait Implementations§
Source§impl Clone for PropertyKind
impl Clone for PropertyKind
Source§fn clone(&self) -> PropertyKind
fn clone(&self) -> PropertyKind
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 PropertyKind
impl Debug for PropertyKind
Source§impl PartialEq for PropertyKind
impl PartialEq for PropertyKind
impl StructuralPartialEq for PropertyKind
Auto Trait Implementations§
impl Freeze for PropertyKind
impl RefUnwindSafe for PropertyKind
impl Send for PropertyKind
impl Sync for PropertyKind
impl Unpin for PropertyKind
impl UnsafeUnpin for PropertyKind
impl UnwindSafe for PropertyKind
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