#[non_exhaustive]pub struct DropRowRangeRequest {
pub name: String,
pub target: Option<Target>,
/* private fields */
}Expand description
Request message for google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange
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.name: StringRequired. The unique name of the table on which to drop a range of rows.
Values are of the form
projects/{project}/instances/{instance}/tables/{table}.
target: Option<Target>Delete all rows or by prefix.
Implementations§
Source§impl DropRowRangeRequest
impl DropRowRangeRequest
pub fn new() -> Self
Sourcepub fn set_target<T: Into<Option<Target>>>(self, v: T) -> Self
pub fn set_target<T: Into<Option<Target>>>(self, v: T) -> Self
Sourcepub fn row_key_prefix(&self) -> Option<&Bytes>
pub fn row_key_prefix(&self) -> Option<&Bytes>
The value of target
if it holds a RowKeyPrefix, None if the field is not set or
holds a different branch.
Sourcepub fn set_row_key_prefix<T: Into<Bytes>>(self, v: T) -> Self
pub fn set_row_key_prefix<T: Into<Bytes>>(self, v: T) -> Self
Sets the value of target
to hold a RowKeyPrefix.
Note that all the setters affecting target are
mutually exclusive.
§Example
ⓘ
let x = DropRowRangeRequest::new().set_row_key_prefix(bytes::Bytes::from_static(b"example"));
assert!(x.row_key_prefix().is_some());
assert!(x.delete_all_data_from_table().is_none());Sourcepub fn delete_all_data_from_table(&self) -> Option<&bool>
pub fn delete_all_data_from_table(&self) -> Option<&bool>
The value of target
if it holds a DeleteAllDataFromTable, None if the field is not set or
holds a different branch.
Sourcepub fn set_delete_all_data_from_table<T: Into<bool>>(self, v: T) -> Self
pub fn set_delete_all_data_from_table<T: Into<bool>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for DropRowRangeRequest
impl Clone for DropRowRangeRequest
Source§fn clone(&self) -> DropRowRangeRequest
fn clone(&self) -> DropRowRangeRequest
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 DropRowRangeRequest
impl Debug for DropRowRangeRequest
Source§impl Default for DropRowRangeRequest
impl Default for DropRowRangeRequest
Source§fn default() -> DropRowRangeRequest
fn default() -> DropRowRangeRequest
Returns the “default value” for a type. Read more
Source§impl Message for DropRowRangeRequest
impl Message for DropRowRangeRequest
Source§impl PartialEq for DropRowRangeRequest
impl PartialEq for DropRowRangeRequest
impl StructuralPartialEq for DropRowRangeRequest
Auto Trait Implementations§
impl !Freeze for DropRowRangeRequest
impl RefUnwindSafe for DropRowRangeRequest
impl Send for DropRowRangeRequest
impl Sync for DropRowRangeRequest
impl Unpin for DropRowRangeRequest
impl UnwindSafe for DropRowRangeRequest
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