#[non_exhaustive]pub struct ColumnDescriptor {
pub path: Vec<String>,
pub description: String,
pub bigquery_policy_tags: Vec<String>,
/* private fields */
}Expand description
Describes a column.
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.path: Vec<String>The identifier for the column. Each entry in path represents one level
of nesting.
description: StringA textual description of the column.
A list of BigQuery policy tags that will be applied to the column.
Implementations§
Source§impl ColumnDescriptor
impl ColumnDescriptor
pub fn new() -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
§Example
ⓘ
let x = ColumnDescriptor::new().set_description("example");Sets the value of bigquery_policy_tags.
§Example
ⓘ
let x = ColumnDescriptor::new().set_bigquery_policy_tags(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for ColumnDescriptor
impl Clone for ColumnDescriptor
Source§fn clone(&self) -> ColumnDescriptor
fn clone(&self) -> ColumnDescriptor
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 ColumnDescriptor
impl Debug for ColumnDescriptor
Source§impl Default for ColumnDescriptor
impl Default for ColumnDescriptor
Source§fn default() -> ColumnDescriptor
fn default() -> ColumnDescriptor
Returns the “default value” for a type. Read more
Source§impl Message for ColumnDescriptor
impl Message for ColumnDescriptor
Source§impl PartialEq for ColumnDescriptor
impl PartialEq for ColumnDescriptor
impl StructuralPartialEq for ColumnDescriptor
Auto Trait Implementations§
impl Freeze for ColumnDescriptor
impl RefUnwindSafe for ColumnDescriptor
impl Send for ColumnDescriptor
impl Sync for ColumnDescriptor
impl Unpin for ColumnDescriptor
impl UnwindSafe for ColumnDescriptor
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