pub enum FieldKind {
Int {
minimum: i64,
maximum: i64,
reserved: Vec<&'static str>,
},
Fixed {
minimum: Decimal,
maximum: Decimal,
resolution: Decimal,
reserved: Vec<&'static str>,
values: u128,
},
Enum {
values: Vec<String>,
escape: bool,
},
Bool,
Counter,
Time {
ms: bool,
},
}Expand description
A field’s type, with what its declaration fixes.
Variants§
Implementations§
Trait Implementations§
impl Eq for FieldKind
impl StructuralPartialEq for FieldKind
Auto Trait Implementations§
impl Forget for FieldKind
impl Freeze for FieldKindwhere
*const u8 is !null: Freeze,
PhantomData<&'static str>: Freeze,
PhantomData<u64>: Freeze,
PhantomData<String>: Freeze,
impl Move for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKindwhere
RawVecInner: Sync,
impl Unpin for FieldKind
impl UnsafeUnpin for FieldKindwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<&'static str>: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for FieldKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more