pub enum Kind {
Bool,
Enum(&'static [&'static str]),
IntRange {
min: i64,
max: i64,
},
MillisBucket(&'static [u32]),
StringList,
Map,
Opaque,
}Expand description
What a field holds.
Variants§
Bool
True or false.
Enum(&'static [&'static str])
One of these wire values, in index order.
IntRange
A whole number in this range, inclusive.
Fields
MillisBucket(&'static [u32])
A span in milliseconds, limited to these buckets.
StringList
A list of strings.
Map
Keyed values.
Opaque
Anything this schema does not model: free text, nested settings, floats. Never learnable.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Forget for Kind
impl Freeze for Kind
impl Move for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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