pub struct FieldSpec {
pub name: String,
pub ty: TypeSpec,
pub default: Option<String>,
}Expand description
A field of a message.
Fields§
§name: StringThe name.
ty: TypeSpecThe type.
default: Option<String>The default value, as written.
Trait Implementations§
impl StructuralPartialEq for FieldSpec
Auto Trait Implementations§
impl Forget for FieldSpec
impl Freeze for FieldSpec
impl Move for FieldSpec
impl RefUnwindSafe for FieldSpec
impl Send for FieldSpecwhere
RawVecInner: Send,
impl Sync for FieldSpecwhere
RawVecInner: Sync,
impl Unpin for FieldSpec
impl UnsafeUnpin for FieldSpec
impl UnwindSafe for FieldSpecwhere
RawVecInner: UnwindSafe,
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