#[non_exhaustive]pub struct SubsetView {
pub row_prefixes: Vec<Bytes>,
pub family_subsets: HashMap<String, FamilySubsets>,
/* private fields */
}Expand description
Defines a simple AuthorizedView that is a subset of the underlying Table.
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.row_prefixes: Vec<Bytes>Row prefixes to be included in the AuthorizedView. To provide access to all rows, include the empty string as a prefix (“”).
family_subsets: HashMap<String, FamilySubsets>Map from column family name to the columns in this family to be included in the AuthorizedView.
Implementations§
Source§impl SubsetView
impl SubsetView
pub fn new() -> Self
Sourcepub fn set_row_prefixes<T, V>(self, v: T) -> Self
pub fn set_row_prefixes<T, V>(self, v: T) -> Self
Sets the value of row_prefixes.
§Example
ⓘ
let b1 = bytes::Bytes::from_static(b"abc");
let b2 = bytes::Bytes::from_static(b"xyz");
let x = SubsetView::new().set_row_prefixes([b1, b2]);Sourcepub fn set_family_subsets<T, K, V>(self, v: T) -> Self
pub fn set_family_subsets<T, K, V>(self, v: T) -> Self
Sets the value of family_subsets.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::authorized_view::FamilySubsets;
let x = SubsetView::new().set_family_subsets([
("key0", FamilySubsets::default()/* use setters */),
("key1", FamilySubsets::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for SubsetView
impl Clone for SubsetView
Source§fn clone(&self) -> SubsetView
fn clone(&self) -> SubsetView
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 SubsetView
impl Debug for SubsetView
Source§impl Default for SubsetView
impl Default for SubsetView
Source§fn default() -> SubsetView
fn default() -> SubsetView
Returns the “default value” for a type. Read more
Source§impl PartialEq for SubsetView
impl PartialEq for SubsetView
impl StructuralPartialEq for SubsetView
Auto Trait Implementations§
impl Freeze for SubsetView
impl RefUnwindSafe for SubsetView
impl Send for SubsetView
impl Sync for SubsetView
impl Unpin for SubsetView
impl UnwindSafe for SubsetView
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