#[non_exhaustive]pub struct Declaration {
pub relation_descriptor: Option<RelationDescriptor>,
/* private fields */
}Expand description
Represents a relation which is not managed by Dataform but which may be referenced by Dataform actions.
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.relation_descriptor: Option<RelationDescriptor>Descriptor for the relation and its columns. Used as documentation only, i.e. values here will result in no changes to the relation’s metadata.
Implementations§
Source§impl Declaration
impl Declaration
pub fn new() -> Self
Sourcepub fn set_relation_descriptor<T>(self, v: T) -> Selfwhere
T: Into<RelationDescriptor>,
pub fn set_relation_descriptor<T>(self, v: T) -> Selfwhere
T: Into<RelationDescriptor>,
Sets the value of relation_descriptor.
§Example
ⓘ
use google_cloud_dataform_v1::model::RelationDescriptor;
let x = Declaration::new().set_relation_descriptor(RelationDescriptor::default()/* use setters */);Sourcepub fn set_or_clear_relation_descriptor<T>(self, v: Option<T>) -> Selfwhere
T: Into<RelationDescriptor>,
pub fn set_or_clear_relation_descriptor<T>(self, v: Option<T>) -> Selfwhere
T: Into<RelationDescriptor>,
Sets or clears the value of relation_descriptor.
§Example
ⓘ
use google_cloud_dataform_v1::model::RelationDescriptor;
let x = Declaration::new().set_or_clear_relation_descriptor(Some(RelationDescriptor::default()/* use setters */));
let x = Declaration::new().set_or_clear_relation_descriptor(None::<RelationDescriptor>);Trait Implementations§
Source§impl Clone for Declaration
impl Clone for Declaration
Source§fn clone(&self) -> Declaration
fn clone(&self) -> Declaration
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 Declaration
impl Debug for Declaration
Source§impl Default for Declaration
impl Default for Declaration
Source§fn default() -> Declaration
fn default() -> Declaration
Returns the “default value” for a type. Read more
Source§impl Message for Declaration
impl Message for Declaration
Source§impl PartialEq for Declaration
impl PartialEq for Declaration
impl StructuralPartialEq for Declaration
Auto Trait Implementations§
impl Freeze for Declaration
impl RefUnwindSafe for Declaration
impl Send for Declaration
impl Sync for Declaration
impl Unpin for Declaration
impl UnwindSafe for Declaration
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