#[non_exhaustive]pub struct RelationDescriptor {
pub description: String,
pub columns: Vec<ColumnDescriptor>,
pub bigquery_labels: HashMap<String, String>,
/* private fields */
}Expand description
Describes a relation and its columns.
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.description: StringA text description of the relation.
columns: Vec<ColumnDescriptor>A list of descriptions of columns within the relation.
bigquery_labels: HashMap<String, String>A set of BigQuery labels that should be applied to the relation.
Implementations§
Source§impl RelationDescriptor
impl RelationDescriptor
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.
Sourcepub fn set_columns<T, V>(self, v: T) -> Self
pub fn set_columns<T, V>(self, v: T) -> Self
Sets the value of columns.
Sourcepub fn set_bigquery_labels<T, K, V>(self, v: T) -> Self
pub fn set_bigquery_labels<T, K, V>(self, v: T) -> Self
Sets the value of bigquery_labels.
Trait Implementations§
Source§impl Clone for RelationDescriptor
impl Clone for RelationDescriptor
Source§fn clone(&self) -> RelationDescriptor
fn clone(&self) -> RelationDescriptor
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 RelationDescriptor
impl Debug for RelationDescriptor
Source§impl Default for RelationDescriptor
impl Default for RelationDescriptor
Source§fn default() -> RelationDescriptor
fn default() -> RelationDescriptor
Returns the “default value” for a type. Read more
Source§impl Message for RelationDescriptor
impl Message for RelationDescriptor
Source§impl PartialEq for RelationDescriptor
impl PartialEq for RelationDescriptor
impl StructuralPartialEq for RelationDescriptor
Auto Trait Implementations§
impl Freeze for RelationDescriptor
impl RefUnwindSafe for RelationDescriptor
impl Send for RelationDescriptor
impl Sync for RelationDescriptor
impl Unpin for RelationDescriptor
impl UnwindSafe for RelationDescriptor
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