pub struct CreateTableRequestOwnedView(/* private fields */);Expand description
Self-contained, 'static owned view of a CreateTableRequest message.
Wraps ::buffa::OwnedView<CreateTableRequestView<'static>>: the decoded view and the ::buffa::bytes::Bytes buffer it borrows from travel together, so the handle is 'static and Send + Sync — suitable for async handlers, spawned tasks, and anywhere a 'static bound is required.
Field accessors return borrows tied to &self. Use Self::view to get the full CreateTableRequestView when you need struct patterns, iteration helpers, or to pass the view to lifetime-parameterised code.
Implementations§
Source§impl CreateTableRequestOwnedView
impl CreateTableRequestOwnedView
Sourcepub fn decode(bytes: Bytes) -> Result<Self, DecodeError>
pub fn decode(bytes: Bytes) -> Result<Self, DecodeError>
Decode an owned view from a ::buffa::bytes::Bytes buffer.
The view borrows directly from the buffer’s data; the buffer is retained inside the returned handle.
§Errors
Returns ::buffa::DecodeError if the buffer contains invalid
protobuf data.
Sourcepub fn decode_with_options(
bytes: Bytes,
opts: &DecodeOptions,
) -> Result<Self, DecodeError>
pub fn decode_with_options( bytes: Bytes, opts: &DecodeOptions, ) -> Result<Self, DecodeError>
Decode with custom ::buffa::DecodeOptions (recursion limit,
max message size).
§Errors
Returns ::buffa::DecodeError if the buffer is invalid or
exceeds the configured limits.
Sourcepub fn from_owned(msg: &CreateTableRequest) -> Result<Self, DecodeError>
pub fn from_owned(msg: &CreateTableRequest) -> Result<Self, DecodeError>
Build from an owned message via an encode → decode round-trip.
§Errors
Returns ::buffa::DecodeError if the re-encoded bytes are
somehow invalid (should not happen for well-formed messages).
Sourcepub fn view(&self) -> &CreateTableRequestView<'_>
pub fn view(&self) -> &CreateTableRequestView<'_>
Borrow the full CreateTableRequestView with its lifetime tied to &self.
Sourcepub fn to_owned_message(&self) -> CreateTableRequest
pub fn to_owned_message(&self) -> CreateTableRequest
Convert to the owned message type.
Sourcepub fn into_bytes(self) -> Bytes
pub fn into_bytes(self) -> Bytes
Consume the handle, returning the underlying bytes buffer.
Sourcepub fn schema_name(&self) -> &str
pub fn schema_name(&self) -> &str
Name of parent schema relative to its parent catalog.
Field 2: schema_name
Sourcepub fn catalog_name(&self) -> &str
pub fn catalog_name(&self) -> &str
Name of parent catalog.
Field 3: catalog_name
Sourcepub fn table_type(&self) -> EnumValue<TableType>
pub fn table_type(&self) -> EnumValue<TableType>
Field 4: table_type
Sourcepub fn data_source_format(&self) -> EnumValue<DataSourceFormat>
pub fn data_source_format(&self) -> EnumValue<DataSourceFormat>
Field 5: data_source_format
Sourcepub fn columns(&self) -> &RepeatedView<'_, ColumnView<'_>>
pub fn columns(&self) -> &RepeatedView<'_, ColumnView<'_>>
The array of Column definitions of the table’s columns.
Field 6: columns
Sourcepub fn storage_location(&self) -> Option<&str>
pub fn storage_location(&self) -> Option<&str>
Storage root URL for external table.
Field 7: storage_location
Sourcepub fn comment(&self) -> Option<&str>
pub fn comment(&self) -> Option<&str>
User-provided free-form text description.
Field 8: comment
Sourcepub fn properties(&self) -> &MapView<'_, &str, &str>
pub fn properties(&self) -> &MapView<'_, &str, &str>
A map of key-value properties attached to the securable.
Field 9: properties (map)
Sourcepub fn view_definition(&self) -> Option<&str>
pub fn view_definition(&self) -> Option<&str>
Definition text for view-like table types (VIEW, MATERIALIZED_VIEW, STREAMING_TABLE, METRIC_VIEW). The format depends on the table type: SQL for views, YAML for metric views. Required for METRIC_VIEW.
Field 10: view_definition
Sourcepub fn view_dependencies(&self) -> &MessageFieldView<DependencyListView<'_>>
pub fn view_dependencies(&self) -> &MessageFieldView<DependencyListView<'_>>
Tables and functions the view-like table reads. For metric views the server derives this from view_definition and rejects a supplied list that diverges from the derived set (the definition is the single source of truth).
Field 11: view_dependencies
Trait Implementations§
Source§impl AsRef<OwnedView<CreateTableRequestView<'static>>> for CreateTableRequestOwnedView
impl AsRef<OwnedView<CreateTableRequestView<'static>>> for CreateTableRequestOwnedView
Source§fn as_ref(&self) -> &OwnedView<CreateTableRequestView<'static>>
fn as_ref(&self) -> &OwnedView<CreateTableRequestView<'static>>
Source§impl Clone for CreateTableRequestOwnedView
impl Clone for CreateTableRequestOwnedView
Source§fn clone(&self) -> CreateTableRequestOwnedView
fn clone(&self) -> CreateTableRequestOwnedView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more