#[non_exhaustive]pub struct ColumnFamily {
pub gc_rule: Option<GcRule>,
pub value_type: Option<Type>,
/* private fields */
}Expand description
A set of columns within a table which share a common configuration.
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.gc_rule: Option<GcRule>Garbage collection rule specified as a protobuf. Must serialize to at most 500 bytes.
NOTE: Garbage collection executes opportunistically in the background, and so it’s possible for reads to return a cell even if it matches the active GC expression for its family.
value_type: Option<Type>The type of data stored in each of this family’s cell values, including its full encoding. If omitted, the family only serves raw untyped bytes.
For now, only the Aggregate type is supported.
Aggregate can only be set at family creation and is immutable afterwards.
If value_type is Aggregate, written data must be compatible with:
value_type.input_typeforAddInputmutations
Implementations§
Source§impl ColumnFamily
impl ColumnFamily
pub fn new() -> Self
Sourcepub fn set_gc_rule<T>(self, v: T) -> Self
pub fn set_gc_rule<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_gc_rule<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_gc_rule<T>(self, v: Option<T>) -> Self
Sourcepub fn set_value_type<T>(self, v: T) -> Self
pub fn set_value_type<T>(self, v: T) -> Self
Sets the value of value_type.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::Type;
let x = ColumnFamily::new().set_value_type(Type::default()/* use setters */);Sourcepub fn set_or_clear_value_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_value_type<T>(self, v: Option<T>) -> Self
Sets or clears the value of value_type.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::Type;
let x = ColumnFamily::new().set_or_clear_value_type(Some(Type::default()/* use setters */));
let x = ColumnFamily::new().set_or_clear_value_type(None::<Type>);Trait Implementations§
Source§impl Clone for ColumnFamily
impl Clone for ColumnFamily
Source§fn clone(&self) -> ColumnFamily
fn clone(&self) -> ColumnFamily
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 ColumnFamily
impl Debug for ColumnFamily
Source§impl Default for ColumnFamily
impl Default for ColumnFamily
Source§fn default() -> ColumnFamily
fn default() -> ColumnFamily
Returns the “default value” for a type. Read more
Source§impl Message for ColumnFamily
impl Message for ColumnFamily
Source§impl PartialEq for ColumnFamily
impl PartialEq for ColumnFamily
impl StructuralPartialEq for ColumnFamily
Auto Trait Implementations§
impl Freeze for ColumnFamily
impl RefUnwindSafe for ColumnFamily
impl Send for ColumnFamily
impl Sync for ColumnFamily
impl Unpin for ColumnFamily
impl UnwindSafe for ColumnFamily
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