pub struct Field {
pub tag: u8,
pub name: &'static str,
pub ty: Type,
pub list: bool,
pub nullable: bool,
pub optional: bool,
}Expand description
A field of a structure, a command or an event.
Fields§
§tag: u8Context tag.
name: &'static strIDL name, lowerCamelCase.
ty: TypeValue type (of each element, for a list).
list: boolWhether the value is a list of ty.
nullable: boolWhether the value can be null.
optional: boolWhether the field can be left out.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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<T> Init<T> for T
impl<T> Init<T> for T
§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.