pub struct CreateTableVersionRequest {
pub identity: Option<Box<Identity>>,
pub context: Option<HashMap<String, String>>,
pub id: Option<Vec<String>>,
pub version: i64,
pub manifest_path: String,
pub manifest_size: Option<i64>,
pub e_tag: Option<String>,
pub metadata: Option<HashMap<String, String>>,
pub naming_scheme: Option<String>,
}Expand description
CreateTableVersionRequest : Request to create a new table version entry. This supports put_if_not_exists semantics, where the operation fails if the version already exists.
Fields§
§identity: Option<Box<Identity>>§context: Option<HashMap<String, String>>Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention x-lance-ctx-<key>: <value>. For example, a context entry {\"trace_id\": \"abc123\"} would be sent as the header x-lance-ctx-trace_id: abc123.
id: Option<Vec<String>>The table identifier
version: i64Version number to create
manifest_path: StringPath to the manifest file for this version
manifest_size: Option<i64>Size of the manifest file in bytes
e_tag: Option<String>Optional ETag for the manifest file
metadata: Option<HashMap<String, String>>Optional metadata for the version
naming_scheme: Option<String>The naming scheme used for manifest files in the _versions/ directory. Known values: - V1: _versions/{version}.manifest - Simple version-based naming - V2: _versions/{inverted_version}.manifest - Zero-padded, reversed version number (uses u64::MAX - version) for O(1) lookup of latest version on object stores V2 is preferred for new tables as it enables efficient latest-version discovery without needing to list all versions.
Implementations§
Source§impl CreateTableVersionRequest
impl CreateTableVersionRequest
Sourcepub fn new(version: i64, manifest_path: String) -> CreateTableVersionRequest
pub fn new(version: i64, manifest_path: String) -> CreateTableVersionRequest
Request to create a new table version entry. This supports put_if_not_exists semantics, where the operation fails if the version already exists.
Trait Implementations§
Source§impl Clone for CreateTableVersionRequest
impl Clone for CreateTableVersionRequest
Source§fn clone(&self) -> CreateTableVersionRequest
fn clone(&self) -> CreateTableVersionRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateTableVersionRequest
impl Debug for CreateTableVersionRequest
Source§impl Default for CreateTableVersionRequest
impl Default for CreateTableVersionRequest
Source§fn default() -> CreateTableVersionRequest
fn default() -> CreateTableVersionRequest
Source§impl<'de> Deserialize<'de> for CreateTableVersionRequest
impl<'de> Deserialize<'de> for CreateTableVersionRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateTableVersionRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateTableVersionRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for CreateTableVersionRequest
impl Serialize for CreateTableVersionRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for CreateTableVersionRequest
Auto Trait Implementations§
impl Freeze for CreateTableVersionRequest
impl RefUnwindSafe for CreateTableVersionRequest
impl Send for CreateTableVersionRequest
impl Sync for CreateTableVersionRequest
impl Unpin for CreateTableVersionRequest
impl UnsafeUnpin for CreateTableVersionRequest
impl UnwindSafe for CreateTableVersionRequest
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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