pub struct TableOptions {
pub time_to_live: Option<i32>,
pub max_versions: Option<i32>,
pub deviation_cell_version_in_sec: Option<i64>,
pub allow_update: Option<bool>,
pub update_full_row: Option<bool>,
}
Fields§
§time_to_live: Option<i32>
§max_versions: Option<i32>
§deviation_cell_version_in_sec: Option<i64>
§allow_update: Option<bool>
§update_full_row: Option<bool>
Implementations§
Source§impl TableOptions
impl TableOptions
Sourcepub fn time_to_live(&self) -> i32
pub fn time_to_live(&self) -> i32
Returns the value of time_to_live
, or the default value if time_to_live
is unset.
Sourcepub fn max_versions(&self) -> i32
pub fn max_versions(&self) -> i32
Returns the value of max_versions
, or the default value if max_versions
is unset.
Sourcepub fn deviation_cell_version_in_sec(&self) -> i64
pub fn deviation_cell_version_in_sec(&self) -> i64
Returns the value of deviation_cell_version_in_sec
, or the default value if deviation_cell_version_in_sec
is unset.
Sourcepub fn allow_update(&self) -> bool
pub fn allow_update(&self) -> bool
Returns the value of allow_update
, or the default value if allow_update
is unset.
Sourcepub fn update_full_row(&self) -> bool
pub fn update_full_row(&self) -> bool
Returns the value of update_full_row
, or the default value if update_full_row
is unset.
Trait Implementations§
Source§impl Clone for TableOptions
impl Clone for TableOptions
Source§fn clone(&self) -> TableOptions
fn clone(&self) -> TableOptions
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 TableOptions
impl Debug for TableOptions
Source§impl Default for TableOptions
impl Default for TableOptions
Source§impl Message for TableOptions
impl Message for TableOptions
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for TableOptions
impl PartialEq for TableOptions
impl Copy for TableOptions
impl StructuralPartialEq for TableOptions
Auto Trait Implementations§
impl Freeze for TableOptions
impl RefUnwindSafe for TableOptions
impl Send for TableOptions
impl Sync for TableOptions
impl Unpin for TableOptions
impl UnwindSafe for TableOptions
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