pub struct Property {
pub name: &'static str,
pub schema: &'static Schema,
pub required: bool,
}Expand description
Named member of an object schema.
Fields§
§name: &'static strStable JSON member name.
schema: &'static SchemaMember validation contract.
required: boolWhether omission is an error.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Property
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