pub struct Property {
pub name: String,
pub logical_type: String,
pub logical_type_options: Option<LogicalTypeOptions>,
pub required: bool,
pub unique: bool,
pub description: Option<String>,
pub items: Option<Box<Property>>,
pub properties: Vec<Property>,
}Expand description
One property (field) of a schema object.
Fields§
§name: String§logical_type: StringODCS logical type: string/date/timestamp/time/number/integer/
object/array/boolean.
logical_type_options: Option<LogicalTypeOptions>§required: bool§unique: bool§description: Option<String>§items: Option<Box<Property>>Element property for logicalType: array.
properties: Vec<Property>Sub-properties for logicalType: object.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin 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