#[non_exhaustive]pub struct Field {
pub name: String,
pub type: String,
pub mode: String,
pub profile: Option<ProfileInfo>,
/* private fields */
}Expand description
A field within a table.
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.name: StringOutput only. The name of the field.
type: StringOutput only. The data type retrieved from the schema of the data source. For instance, for a BigQuery native table, it is the BigQuery Table Schema. For a Dataplex Universal Catalog Entity, it is the Entity Schema.
mode: StringOutput only. The mode of the field. Possible values include:
- REQUIRED, if it is a required field.
- NULLABLE, if it is an optional field.
- REPEATED, if it is a repeated field.
profile: Option<ProfileInfo>Output only. Profile information for the corresponding field.
Implementations§
Source§impl Field
impl Field
pub fn new() -> Self
Sourcepub fn set_profile<T>(self, v: T) -> Selfwhere
T: Into<ProfileInfo>,
pub fn set_profile<T>(self, v: T) -> Selfwhere
T: Into<ProfileInfo>,
Sets the value of profile.
Sourcepub fn set_or_clear_profile<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProfileInfo>,
pub fn set_or_clear_profile<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProfileInfo>,
Sets or clears the value of profile.
Trait Implementations§
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