pub struct Property {
pub name: String,
pub schema_ref: Reference,
pub required: bool,
}Expand description
One property on a schema-like entity, pointing at another entity via Reference.
Fields§
§name: StringProperty field name.
schema_ref: ReferenceStructural reference to the property’s schema entity.
required: boolWhether the property is required on the parent type.
Trait Implementations§
impl Eq for Property
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnsafeUnpin for Property
impl UnwindSafe for Property
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