pub struct CreateTableRequest {
pub table_meta: TableMeta,
pub reserved_throughput: ReservedThroughput,
pub table_options: Option<TableOptions>,
pub partitions: Vec<PartitionRange>,
pub stream_spec: Option<StreamSpecification>,
pub sse_spec: Option<SseSpecification>,
pub index_metas: Vec<IndexMeta>,
pub enable_local_txn: Option<bool>,
}
Fields§
§table_meta: TableMeta
§reserved_throughput: ReservedThroughput
§table_options: Option<TableOptions>
§partitions: Vec<PartitionRange>
§stream_spec: Option<StreamSpecification>
§sse_spec: Option<SseSpecification>
§index_metas: Vec<IndexMeta>
§enable_local_txn: Option<bool>
Implementations§
Source§impl CreateTableRequest
impl CreateTableRequest
Sourcepub fn enable_local_txn(&self) -> bool
pub fn enable_local_txn(&self) -> bool
Returns the value of enable_local_txn
, or the default value if enable_local_txn
is unset.
Trait Implementations§
Source§impl Clone for CreateTableRequest
impl Clone for CreateTableRequest
Source§fn clone(&self) -> CreateTableRequest
fn clone(&self) -> CreateTableRequest
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 CreateTableRequest
impl Debug for CreateTableRequest
Source§impl Default for CreateTableRequest
impl Default for CreateTableRequest
Source§impl From<CreateTableRequest> for CreateTableRequest
impl From<CreateTableRequest> for CreateTableRequest
Source§fn from(value: CreateTableRequest) -> Self
fn from(value: CreateTableRequest) -> Self
Converts to this type from the input type.
Source§impl Message for CreateTableRequest
impl Message for CreateTableRequest
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 CreateTableRequest
impl PartialEq for CreateTableRequest
impl StructuralPartialEq for CreateTableRequest
Auto Trait Implementations§
impl Freeze for CreateTableRequest
impl RefUnwindSafe for CreateTableRequest
impl Send for CreateTableRequest
impl Sync for CreateTableRequest
impl Unpin for CreateTableRequest
impl UnwindSafe for CreateTableRequest
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