Struct Field
pub struct Field {
pub name: String,
pub logical: LogicalType,
pub cardinality: Cardinality,
pub required: bool,
pub description: Option<String>,
}Expand description
One field of a SchemaObject.
Fields§
§name: String§logical: LogicalTypeThe element/leaf type (for a Map this is the value type).
cardinality: Cardinality§required: boolWhether the field is guaranteed present. Proto3 has no required, so the
protobuf spoke leaves this false; other spokes may set it.
description: 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 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