pub enum Types {
Any,
Flag,
Str,
ByteStr,
Byte,
Char,
I32,
F32,
Bool,
Idents,
}
Expand description
all the types a field can contain
Variants§
Any
can contain any literal
Flag
doesn’t have a value eg #[my_input(enabled)]
Str
for string
ByteStr
for bytestring
Byte
for u8
Char
for char
I32
for i32
F32
for f32
Bool
for bool
Idents
for idents
Trait Implementations§
Source§impl From<&DefaultValue> for Types
impl From<&DefaultValue> for Types
Source§fn from(value: &DefaultValue) -> Types
fn from(value: &DefaultValue) -> Types
Converts to this type from the input type.
impl Copy for Types
Auto Trait Implementations§
impl Freeze for Types
impl RefUnwindSafe for Types
impl Send for Types
impl Sync for Types
impl Unpin for Types
impl UnwindSafe for Types
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