#[non_exhaustive]pub struct AuthorizedView {
pub name: String,
pub etag: String,
pub deletion_protection: bool,
pub authorized_view: Option<AuthorizedView>,
/* private fields */
}Expand description
AuthorizedViews represent subsets of a particular Cloud Bigtable table. Users can configure access to each Authorized View independently from the table and use the existing Data APIs to access the subset of data.
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.name: StringIdentifier. The name of this AuthorizedView.
Values are of the form
projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}
etag: StringThe etag for this AuthorizedView. If this is provided on update, it must match the server’s etag. The server returns ABORTED error on a mismatched etag.
deletion_protection: boolSet to true to make the AuthorizedView protected against deletion. The parent Table and containing Instance cannot be deleted if an AuthorizedView has this bit set.
The type of this AuthorizedView.
Implementations§
Source§impl AuthorizedView
impl AuthorizedView
Sourcepub fn set_deletion_protection<T: Into<bool>>(self, v: T) -> Self
pub fn set_deletion_protection<T: Into<bool>>(self, v: T) -> Self
Sets the value of deletion_protection.
§Example
let x = AuthorizedView::new().set_deletion_protection(true);Sets the value of authorized_view.
Note that all the setters affecting authorized_view are mutually
exclusive.
§Example
use google_cloud_bigtable_admin_v2::model::authorized_view::SubsetView;
let x = AuthorizedView::new().set_authorized_view(Some(
google_cloud_bigtable_admin_v2::model::authorized_view::AuthorizedView::SubsetView(SubsetView::default().into())));Sourcepub fn subset_view(&self) -> Option<&Box<SubsetView>>
pub fn subset_view(&self) -> Option<&Box<SubsetView>>
The value of authorized_view
if it holds a SubsetView, None if the field is not set or
holds a different branch.
Sourcepub fn set_subset_view<T: Into<Box<SubsetView>>>(self, v: T) -> Self
pub fn set_subset_view<T: Into<Box<SubsetView>>>(self, v: T) -> Self
Sets the value of authorized_view
to hold a SubsetView.
Note that all the setters affecting authorized_view are
mutually exclusive.
§Example
use google_cloud_bigtable_admin_v2::model::authorized_view::SubsetView;
let x = AuthorizedView::new().set_subset_view(SubsetView::default()/* use setters */);
assert!(x.subset_view().is_some());Trait Implementations§
Source§impl Clone for AuthorizedView
impl Clone for AuthorizedView
Source§fn clone(&self) -> AuthorizedView
fn clone(&self) -> AuthorizedView
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 AuthorizedView
impl Debug for AuthorizedView
Source§impl Default for AuthorizedView
impl Default for AuthorizedView
Source§fn default() -> AuthorizedView
fn default() -> AuthorizedView
Source§impl Message for AuthorizedView
impl Message for AuthorizedView
Source§impl PartialEq for AuthorizedView
impl PartialEq for AuthorizedView
impl StructuralPartialEq for AuthorizedView
Auto Trait Implementations§
impl Freeze for AuthorizedView
impl RefUnwindSafe for AuthorizedView
impl Send for AuthorizedView
impl Sync for AuthorizedView
impl Unpin for AuthorizedView
impl UnsafeUnpin for AuthorizedView
impl UnwindSafe for AuthorizedView
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