#[non_exhaustive]pub struct SubscribeDataExchangeRequest {
pub name: String,
pub destination: String,
pub destination_dataset: Option<DestinationDataset>,
pub subscription: String,
pub subscriber_contact: String,
/* private fields */
}Expand description
Message for subscribing to a Data Exchange.
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: StringRequired. Resource name of the Data Exchange.
e.g. projects/publisherproject/locations/us/dataExchanges/123
destination: StringRequired. The parent resource path of the Subscription.
e.g. projects/subscriberproject/locations/us
destination_dataset: Option<DestinationDataset>Optional. BigQuery destination dataset to create for the subscriber.
subscription: StringRequired. Name of the subscription to create.
e.g. subscription1
subscriber_contact: StringEmail of the subscriber.
Implementations§
Source§impl SubscribeDataExchangeRequest
impl SubscribeDataExchangeRequest
pub fn new() -> Self
Sourcepub fn set_destination<T: Into<String>>(self, v: T) -> Self
pub fn set_destination<T: Into<String>>(self, v: T) -> Self
Sets the value of destination.
Sourcepub fn set_destination_dataset<T>(self, v: T) -> Selfwhere
T: Into<DestinationDataset>,
pub fn set_destination_dataset<T>(self, v: T) -> Selfwhere
T: Into<DestinationDataset>,
Sets the value of destination_dataset.
Sourcepub fn set_or_clear_destination_dataset<T>(self, v: Option<T>) -> Selfwhere
T: Into<DestinationDataset>,
pub fn set_or_clear_destination_dataset<T>(self, v: Option<T>) -> Selfwhere
T: Into<DestinationDataset>,
Sets or clears the value of destination_dataset.
Sourcepub fn set_subscription<T: Into<String>>(self, v: T) -> Self
pub fn set_subscription<T: Into<String>>(self, v: T) -> Self
Sets the value of subscription.
Sourcepub fn set_subscriber_contact<T: Into<String>>(self, v: T) -> Self
pub fn set_subscriber_contact<T: Into<String>>(self, v: T) -> Self
Sets the value of subscriber_contact.
Trait Implementations§
Source§impl Clone for SubscribeDataExchangeRequest
impl Clone for SubscribeDataExchangeRequest
Source§fn clone(&self) -> SubscribeDataExchangeRequest
fn clone(&self) -> SubscribeDataExchangeRequest
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 SubscribeDataExchangeRequest
impl Debug for SubscribeDataExchangeRequest
Source§impl Default for SubscribeDataExchangeRequest
impl Default for SubscribeDataExchangeRequest
Source§fn default() -> SubscribeDataExchangeRequest
fn default() -> SubscribeDataExchangeRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for SubscribeDataExchangeRequest
impl PartialEq for SubscribeDataExchangeRequest
Source§fn eq(&self, other: &SubscribeDataExchangeRequest) -> bool
fn eq(&self, other: &SubscribeDataExchangeRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubscribeDataExchangeRequest
Auto Trait Implementations§
impl Freeze for SubscribeDataExchangeRequest
impl RefUnwindSafe for SubscribeDataExchangeRequest
impl Send for SubscribeDataExchangeRequest
impl Sync for SubscribeDataExchangeRequest
impl Unpin for SubscribeDataExchangeRequest
impl UnwindSafe for SubscribeDataExchangeRequest
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