Struct google_spanner1::PartitionOptions
source · pub struct PartitionOptions {
pub max_partitions: Option<String>,
pub partition_size_bytes: Option<String>,
}
Expand description
Options for a PartitionQueryRequest and PartitionReadRequest.
This type is not used in any activity, and only used as part of another schema.
Fields§
§max_partitions: Option<String>
Note: This hint is currently ignored by PartitionQuery and PartitionRead requests.
The desired maximum number of partitions to return. For example, this may be set to the number of workers available. The default for this option is currently 10,000. The maximum value is currently 200,000. This is only a hint. The actual number of partitions returned may be smaller or larger than this maximum count request.
partition_size_bytes: Option<String>
Note: This hint is currently ignored by PartitionQuery and PartitionRead requests.
The desired data size for each partition generated. The default for this option is currently 1 GiB. This is only a hint. The actual size of each partition may be smaller or larger than this size request.
Trait Implementations§
source§impl Clone for PartitionOptions
impl Clone for PartitionOptions
source§fn clone(&self) -> PartitionOptions
fn clone(&self) -> PartitionOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PartitionOptions
impl Debug for PartitionOptions
source§impl Default for PartitionOptions
impl Default for PartitionOptions
source§fn default() -> PartitionOptions
fn default() -> PartitionOptions
source§impl<'de> Deserialize<'de> for PartitionOptions
impl<'de> Deserialize<'de> for PartitionOptions
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>,
source§impl Serialize for PartitionOptions
impl Serialize for PartitionOptions
impl Part for PartitionOptions
Auto Trait Implementations§
impl Freeze for PartitionOptions
impl RefUnwindSafe for PartitionOptions
impl Send for PartitionOptions
impl Sync for PartitionOptions
impl Unpin for PartitionOptions
impl UnwindSafe for PartitionOptions
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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