pub struct Field {
pub name: String,
pub ty: FieldType,
pub default: Option<Value>,
}Expand description
A field of a message.
Fields§
§name: StringThe name.
ty: FieldTypeThe type.
default: Option<Value>The default value of the .msg file.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Field
impl Freeze for Fieldwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<MessageInner> is !null: Freeze,
PhantomData<ArcInner<MessageInner>>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<(String, Value)>: Freeze,
impl Move for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Fieldwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<MessageInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<MessageInner>>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
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