#[non_exhaustive]pub struct TableFieldSchema {
pub field: String,
pub type: String,
pub mode: String,
pub fields: Vec<TableFieldSchema>,
/* private fields */
}Expand description
A field in TableSchema.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.field: StringThe field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
type: StringThe field data type. Possible values include
- STRING
- BYTES
- INTEGER
- FLOAT
- BOOLEAN
- TIMESTAMP
- DATE
- TIME
- DATETIME
- GEOGRAPHY,
- NUMERIC,
- BIGNUMERIC,
- RECORD (where RECORD indicates that the field contains a nested schema).
mode: StringThe field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
fields: Vec<TableFieldSchema>Describes the nested schema fields if the type property is set to RECORD.
Implementations§
Trait Implementations§
Source§impl Clone for TableFieldSchema
impl Clone for TableFieldSchema
Source§fn clone(&self) -> TableFieldSchema
fn clone(&self) -> TableFieldSchema
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 TableFieldSchema
impl Debug for TableFieldSchema
Source§impl Default for TableFieldSchema
impl Default for TableFieldSchema
Source§fn default() -> TableFieldSchema
fn default() -> TableFieldSchema
Returns the “default value” for a type. Read more
Source§impl Message for TableFieldSchema
impl Message for TableFieldSchema
Source§impl PartialEq for TableFieldSchema
impl PartialEq for TableFieldSchema
impl StructuralPartialEq for TableFieldSchema
Auto Trait Implementations§
impl Freeze for TableFieldSchema
impl RefUnwindSafe for TableFieldSchema
impl Send for TableFieldSchema
impl Sync for TableFieldSchema
impl Unpin for TableFieldSchema
impl UnwindSafe for TableFieldSchema
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