#[non_exhaustive]pub struct JoinRestrictionPolicy {
pub join_condition: Option<JoinCondition>,
pub join_allowed_columns: Vec<String>,
/* private fields */
}Expand description
Represents privacy policy associated with “join restrictions”. Join restriction gives data providers the ability to enforce joins on the ‘join_allowed_columns’ when data is queried from a privacy protected view.
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.join_condition: Option<JoinCondition>Optional. Specifies if a join is required or not on queries for the view. Default is JOIN_CONDITION_UNSPECIFIED.
join_allowed_columns: Vec<String>Optional. The only columns that joins are allowed on. This field is must be specified for join_conditions JOIN_ANY and JOIN_ALL and it cannot be set for JOIN_BLOCKED.
Implementations§
Source§impl JoinRestrictionPolicy
impl JoinRestrictionPolicy
Sourcepub fn set_join_condition<T>(self, v: T) -> Selfwhere
T: Into<JoinCondition>,
pub fn set_join_condition<T>(self, v: T) -> Selfwhere
T: Into<JoinCondition>,
Sets the value of join_condition.
§Example
ⓘ
use google_cloud_bigquery_v2::model::join_restriction_policy::JoinCondition;
let x0 = JoinRestrictionPolicy::new().set_join_condition(JoinCondition::JoinAny);
let x1 = JoinRestrictionPolicy::new().set_join_condition(JoinCondition::JoinAll);
let x2 = JoinRestrictionPolicy::new().set_join_condition(JoinCondition::JoinNotRequired);Sourcepub fn set_or_clear_join_condition<T>(self, v: Option<T>) -> Selfwhere
T: Into<JoinCondition>,
pub fn set_or_clear_join_condition<T>(self, v: Option<T>) -> Selfwhere
T: Into<JoinCondition>,
Sets or clears the value of join_condition.
§Example
ⓘ
use google_cloud_bigquery_v2::model::join_restriction_policy::JoinCondition;
let x0 = JoinRestrictionPolicy::new().set_or_clear_join_condition(Some(JoinCondition::JoinAny));
let x1 = JoinRestrictionPolicy::new().set_or_clear_join_condition(Some(JoinCondition::JoinAll));
let x2 = JoinRestrictionPolicy::new().set_or_clear_join_condition(Some(JoinCondition::JoinNotRequired));
let x_none = JoinRestrictionPolicy::new().set_or_clear_join_condition(None::<JoinCondition>);Sourcepub fn set_join_allowed_columns<T, V>(self, v: T) -> Self
pub fn set_join_allowed_columns<T, V>(self, v: T) -> Self
Sets the value of join_allowed_columns.
§Example
ⓘ
let x = JoinRestrictionPolicy::new().set_join_allowed_columns(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for JoinRestrictionPolicy
impl Clone for JoinRestrictionPolicy
Source§fn clone(&self) -> JoinRestrictionPolicy
fn clone(&self) -> JoinRestrictionPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JoinRestrictionPolicy
impl Debug for JoinRestrictionPolicy
Source§impl Default for JoinRestrictionPolicy
impl Default for JoinRestrictionPolicy
Source§fn default() -> JoinRestrictionPolicy
fn default() -> JoinRestrictionPolicy
Returns the “default value” for a type. Read more
Source§impl Message for JoinRestrictionPolicy
impl Message for JoinRestrictionPolicy
Source§impl PartialEq for JoinRestrictionPolicy
impl PartialEq for JoinRestrictionPolicy
impl StructuralPartialEq for JoinRestrictionPolicy
Auto Trait Implementations§
impl Freeze for JoinRestrictionPolicy
impl RefUnwindSafe for JoinRestrictionPolicy
impl Send for JoinRestrictionPolicy
impl Sync for JoinRestrictionPolicy
impl Unpin for JoinRestrictionPolicy
impl UnsafeUnpin for JoinRestrictionPolicy
impl UnwindSafe for JoinRestrictionPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request