#[non_exhaustive]pub struct RowAccessPolicy {
pub etag: String,
pub row_access_policy_reference: Option<RowAccessPolicyReference>,
pub filter_predicate: String,
pub creation_time: Option<Timestamp>,
pub last_modified_time: Option<Timestamp>,
pub grantees: Vec<String>,
/* private fields */
}Expand description
Represents access on a subset of rows on the specified table, defined by its filter predicate. Access to the subset of rows is controlled by its IAM policy.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.etag: StringOutput only. A hash of this resource.
row_access_policy_reference: Option<RowAccessPolicyReference>Required. Reference describing the ID of this row access policy.
filter_predicate: StringRequired. A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported.
Examples: region=“EU” date_field = CAST(‘2019-9-27’ as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0
creation_time: Option<Timestamp>Output only. The time when this row access policy was created, in milliseconds since the epoch.
last_modified_time: Option<Timestamp>Output only. The time when this row access policy was last modified, in milliseconds since the epoch.
grantees: Vec<String>Optional. Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with.
grantees types:
- “user:alice@example.com”: An email address that represents a specific Google account.
- “serviceAccount:my-other-app@appspot.gserviceaccount.com”: An email address that represents a service account.
- “group:admins@example.com”: An email address that represents a Google group.
- “domain:example.com”:The Google Workspace domain (primary) that represents all the users of that domain.
- “allAuthenticatedUsers”: A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren’t connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren’t authenticated, such as anonymous visitors, aren’t included.
- “allUsers”:A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
Implementations§
Source§impl RowAccessPolicy
impl RowAccessPolicy
Sourcepub fn set_row_access_policy_reference<T>(self, v: T) -> Selfwhere
T: Into<RowAccessPolicyReference>,
pub fn set_row_access_policy_reference<T>(self, v: T) -> Selfwhere
T: Into<RowAccessPolicyReference>,
Sets the value of row_access_policy_reference.
§Example
use google_cloud_bigquery_v2::model::RowAccessPolicyReference;
let x = RowAccessPolicy::new().set_row_access_policy_reference(RowAccessPolicyReference::default()/* use setters */);Sourcepub fn set_or_clear_row_access_policy_reference<T>(self, v: Option<T>) -> Selfwhere
T: Into<RowAccessPolicyReference>,
pub fn set_or_clear_row_access_policy_reference<T>(self, v: Option<T>) -> Selfwhere
T: Into<RowAccessPolicyReference>,
Sets or clears the value of row_access_policy_reference.
§Example
use google_cloud_bigquery_v2::model::RowAccessPolicyReference;
let x = RowAccessPolicy::new().set_or_clear_row_access_policy_reference(Some(RowAccessPolicyReference::default()/* use setters */));
let x = RowAccessPolicy::new().set_or_clear_row_access_policy_reference(None::<RowAccessPolicyReference>);Sourcepub fn set_filter_predicate<T: Into<String>>(self, v: T) -> Self
pub fn set_filter_predicate<T: Into<String>>(self, v: T) -> Self
Sets the value of filter_predicate.
§Example
let x = RowAccessPolicy::new().set_filter_predicate("example");Sourcepub fn set_creation_time<T>(self, v: T) -> Self
pub fn set_creation_time<T>(self, v: T) -> Self
Sets the value of creation_time.
§Example
use wkt::Timestamp;
let x = RowAccessPolicy::new().set_creation_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_creation_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creation_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of creation_time.
§Example
use wkt::Timestamp;
let x = RowAccessPolicy::new().set_or_clear_creation_time(Some(Timestamp::default()/* use setters */));
let x = RowAccessPolicy::new().set_or_clear_creation_time(None::<Timestamp>);Sourcepub fn set_last_modified_time<T>(self, v: T) -> Self
pub fn set_last_modified_time<T>(self, v: T) -> Self
Sets the value of last_modified_time.
§Example
use wkt::Timestamp;
let x = RowAccessPolicy::new().set_last_modified_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_last_modified_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_modified_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_modified_time.
§Example
use wkt::Timestamp;
let x = RowAccessPolicy::new().set_or_clear_last_modified_time(Some(Timestamp::default()/* use setters */));
let x = RowAccessPolicy::new().set_or_clear_last_modified_time(None::<Timestamp>);Sourcepub fn set_grantees<T, V>(self, v: T) -> Self
pub fn set_grantees<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for RowAccessPolicy
impl Clone for RowAccessPolicy
Source§fn clone(&self) -> RowAccessPolicy
fn clone(&self) -> RowAccessPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RowAccessPolicy
impl Debug for RowAccessPolicy
Source§impl Default for RowAccessPolicy
impl Default for RowAccessPolicy
Source§fn default() -> RowAccessPolicy
fn default() -> RowAccessPolicy
Source§impl Message for RowAccessPolicy
impl Message for RowAccessPolicy
Source§impl PartialEq for RowAccessPolicy
impl PartialEq for RowAccessPolicy
impl StructuralPartialEq for RowAccessPolicy
Auto Trait Implementations§
impl Freeze for RowAccessPolicy
impl RefUnwindSafe for RowAccessPolicy
impl Send for RowAccessPolicy
impl Sync for RowAccessPolicy
impl Unpin for RowAccessPolicy
impl UnsafeUnpin for RowAccessPolicy
impl UnwindSafe for RowAccessPolicy
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
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>
T in a tonic::Request