pub struct ShapeField {
pub name: String,
pub type_expr: TypeExpr,
pub optional: bool,
}Expand description
A field in a dict shape type.
Fields§
§name: String§type_expr: TypeExpr§optional: boolTrait Implementations§
Source§impl Clone for ShapeField
impl Clone for ShapeField
Source§fn clone(&self) -> ShapeField
fn clone(&self) -> ShapeField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShapeField
impl Debug for ShapeField
Source§impl PartialEq for ShapeField
impl PartialEq for ShapeField
impl StructuralPartialEq for ShapeField
Auto Trait Implementations§
impl Freeze for ShapeField
impl RefUnwindSafe for ShapeField
impl Send for ShapeField
impl Sync for ShapeField
impl Unpin for ShapeField
impl UnsafeUnpin for ShapeField
impl UnwindSafe for ShapeField
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