pub struct Field {
pub attr: String,
pub wire: String,
pub ty: Ty,
pub required: bool,
pub doc: Option<String>,
}Expand description
One field of a Model.
Fields§
§attr: StringAttribute name in the target language.
wire: StringProperty name on the wire.
ty: Ty§required: bool§doc: Option<String>Trait Implementations§
impl Eq for Field
impl StructuralPartialEq for Field
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