#[non_exhaustive]pub struct BigtableColumnFamily {
pub field_name: String,
pub encoding: Encoding,
pub type: Type,
pub columns: Vec<BigtableColumn>,
/* private fields */
}Available on crate feature
document-service only.Expand description
The column family of the Bigtable.
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.field_name: StringThe field name to use for this column family in the document. The
name has to match the pattern [a-zA-Z0-9][a-zA-Z0-9-_]*. If not set,
it is parsed from the family name with best effort. However, due to
different naming patterns, field name collisions could happen, where
parsing behavior is undefined.
encoding: EncodingThe encoding mode of the values when the type is not STRING. Acceptable encoding values are:
TEXT: indicates values are alphanumeric text strings.BINARY: indicates values are encoded usingHBase Bytes.toBytesfamily of functions. This can be overridden for a specific column by listing that column incolumnsand specifying an encoding for it.
type: TypeThe type of values in this column family.
The values are expected to be encoded using HBase Bytes.toBytes
function when the encoding value is set to BINARY.
columns: Vec<BigtableColumn>The list of objects that contains column level information for each column. If a column is not present in this list it will be ignored.
Implementations§
Source§impl BigtableColumnFamily
impl BigtableColumnFamily
pub fn new() -> Self
Sourcepub fn set_field_name<T: Into<String>>(self, v: T) -> Self
pub fn set_field_name<T: Into<String>>(self, v: T) -> Self
Sets the value of field_name.
§Example
ⓘ
let x = BigtableColumnFamily::new().set_field_name("example");Sourcepub fn set_encoding<T: Into<Encoding>>(self, v: T) -> Self
pub fn set_encoding<T: Into<Encoding>>(self, v: T) -> Self
Sourcepub fn set_columns<T, V>(self, v: T) -> Self
pub fn set_columns<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for BigtableColumnFamily
impl Clone for BigtableColumnFamily
Source§fn clone(&self) -> BigtableColumnFamily
fn clone(&self) -> BigtableColumnFamily
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 BigtableColumnFamily
impl Debug for BigtableColumnFamily
Source§impl Default for BigtableColumnFamily
impl Default for BigtableColumnFamily
Source§fn default() -> BigtableColumnFamily
fn default() -> BigtableColumnFamily
Returns the “default value” for a type. Read more
Source§impl Message for BigtableColumnFamily
impl Message for BigtableColumnFamily
Source§impl PartialEq for BigtableColumnFamily
impl PartialEq for BigtableColumnFamily
impl StructuralPartialEq for BigtableColumnFamily
Auto Trait Implementations§
impl Freeze for BigtableColumnFamily
impl RefUnwindSafe for BigtableColumnFamily
impl Send for BigtableColumnFamily
impl Sync for BigtableColumnFamily
impl Unpin for BigtableColumnFamily
impl UnwindSafe for BigtableColumnFamily
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