Struct iceberg_rust::spec::snapshot::SnapshotBuilder
source · pub struct SnapshotBuilder { /* private fields */ }
Expand description
Builder for Snapshot
.
Implementations§
source§impl SnapshotBuilder
impl SnapshotBuilder
sourcepub fn with_snapshot_id(&mut self, value: i64) -> &mut SnapshotBuilder
pub fn with_snapshot_id(&mut self, value: i64) -> &mut SnapshotBuilder
A unique long ID
sourcepub fn with_parent_snapshot_id(&mut self, value: i64) -> &mut SnapshotBuilder
pub fn with_parent_snapshot_id(&mut self, value: i64) -> &mut SnapshotBuilder
The snapshot ID of the snapshot’s parent. Omitted for any snapshot with no parent
sourcepub fn with_sequence_number(&mut self, value: i64) -> &mut SnapshotBuilder
pub fn with_sequence_number(&mut self, value: i64) -> &mut SnapshotBuilder
A monotonically increasing long that tracks the order of changes to a table.
sourcepub fn with_timestamp_ms(&mut self, value: i64) -> &mut SnapshotBuilder
pub fn with_timestamp_ms(&mut self, value: i64) -> &mut SnapshotBuilder
A timestamp when the snapshot was created, used for garbage collection and table inspection
sourcepub fn with_manifest_list(&mut self, value: String) -> &mut SnapshotBuilder
pub fn with_manifest_list(&mut self, value: String) -> &mut SnapshotBuilder
The location of a manifest list for this snapshot that tracks manifest files with additional metadata.
sourcepub fn with_summary(&mut self, value: Summary) -> &mut SnapshotBuilder
pub fn with_summary(&mut self, value: Summary) -> &mut SnapshotBuilder
A string map that summarizes the snapshot changes, including operation.
sourcepub fn with_schema_id(&mut self, value: i32) -> &mut SnapshotBuilder
pub fn with_schema_id(&mut self, value: i32) -> &mut SnapshotBuilder
ID of the table’s current schema when the snapshot was created.
Trait Implementations§
source§impl Clone for SnapshotBuilder
impl Clone for SnapshotBuilder
source§fn clone(&self) -> SnapshotBuilder
fn clone(&self) -> SnapshotBuilder
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 SnapshotBuilder
impl Default for SnapshotBuilder
source§fn default() -> SnapshotBuilder
fn default() -> SnapshotBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SnapshotBuilder
impl Send for SnapshotBuilder
impl Sync for SnapshotBuilder
impl Unpin for SnapshotBuilder
impl UnwindSafe for SnapshotBuilder
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