pub struct Table {
pub change_stream_config: Option<ChangeStreamConfig>,
pub cluster_states: Option<HashMap<String, ClusterState>>,
pub column_families: Option<HashMap<String, ColumnFamily>>,
pub deletion_protection: Option<bool>,
pub granularity: Option<String>,
pub name: Option<String>,
pub restore_info: Option<RestoreInfo>,
pub stats: Option<TableStats>,
}
Expand description
A collection of user data indexed by row, column, and timestamp. Each table is served using the resources of its parent cluster.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- instances tables create projects (response)
- instances tables get projects (response)
- instances tables modify column families projects (response)
- instances tables patch projects (request)
Fields§
§change_stream_config: Option<ChangeStreamConfig>
If specified, enable the change stream on this table. Otherwise, the change stream is disabled and the change stream is not retained.
cluster_states: Option<HashMap<String, ClusterState>>
Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN replication_status
. Views: REPLICATION_VIEW
, ENCRYPTION_VIEW
, FULL
column_families: Option<HashMap<String, ColumnFamily>>
The column families configured for this table, mapped by column family ID. Views: SCHEMA_VIEW
, STATS_VIEW
, FULL
deletion_protection: Option<bool>
Set to true to make the table protected against data loss. i.e. deleting the following resources through Admin APIs are prohibited: * The table. * The column families in the table. * The instance containing the table. Note one can still delete the data stored in the table through Data APIs.
granularity: Option<String>
Immutable. The granularity (i.e. MILLIS
) at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to MILLIS
. Views: SCHEMA_VIEW
, FULL
.
name: Option<String>
The unique name of the table. Values are of the form projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*
. Views: NAME_ONLY
, SCHEMA_VIEW
, REPLICATION_VIEW
, STATS_VIEW
, FULL
restore_info: Option<RestoreInfo>
Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.
stats: Option<TableStats>
Output only. Only available with STATS_VIEW, this includes summary statistics about the entire table contents. For statistics about a specific column family, see ColumnFamilyStats in the mapped ColumnFamily collection above.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Table
impl<'de> Deserialize<'de> for Table
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for Table
impl ResponseResult for Table
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more