Struct iceberg_rust::spec::partition::PartitionSpecBuilder
source · pub struct PartitionSpecBuilder { /* private fields */ }
Expand description
Builder for PartitionSpec
.
Implementations§
source§impl PartitionSpecBuilder
impl PartitionSpecBuilder
sourcepub fn with_spec_id(&mut self, value: i32) -> &mut PartitionSpecBuilder
pub fn with_spec_id(&mut self, value: i32) -> &mut PartitionSpecBuilder
Identifier for PartitionSpec
sourcepub fn with_fields(
&mut self,
value: Vec<PartitionField>
) -> &mut PartitionSpecBuilder
pub fn with_fields( &mut self, value: Vec<PartitionField> ) -> &mut PartitionSpecBuilder
Details of the partition spec
sourcepub fn with_partition_field<VALUE>(
&mut self,
item: VALUE
) -> &mut PartitionSpecBuilder
pub fn with_partition_field<VALUE>( &mut self, item: VALUE ) -> &mut PartitionSpecBuilder
Details of the partition spec
sourcepub fn build(&self) -> Result<PartitionSpec, PartitionSpecBuilderError>
pub fn build(&self) -> Result<PartitionSpec, PartitionSpecBuilderError>
Trait Implementations§
source§impl Clone for PartitionSpecBuilder
impl Clone for PartitionSpecBuilder
source§fn clone(&self) -> PartitionSpecBuilder
fn clone(&self) -> PartitionSpecBuilder
Returns a copy 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 Default for PartitionSpecBuilder
impl Default for PartitionSpecBuilder
source§fn default() -> PartitionSpecBuilder
fn default() -> PartitionSpecBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PartitionSpecBuilder
impl RefUnwindSafe for PartitionSpecBuilder
impl Send for PartitionSpecBuilder
impl Sync for PartitionSpecBuilder
impl Unpin for PartitionSpecBuilder
impl UnwindSafe for PartitionSpecBuilder
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