pub struct ModelVersionOwnedView(/* private fields */);Expand description
Self-contained, 'static owned view of a ModelVersion message.
Wraps ::buffa::OwnedView<ModelVersionView<'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 ModelVersionView when you need struct patterns, iteration helpers, or to pass the view to lifetime-parameterised code.
Implementations§
Source§impl ModelVersionOwnedView
impl ModelVersionOwnedView
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: &ModelVersion) -> Result<Self, DecodeError>
pub fn from_owned(msg: &ModelVersion) -> 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) -> &ModelVersionView<'_>
pub fn view(&self) -> &ModelVersionView<'_>
Borrow the full ModelVersionView with its lifetime tied to &self.
Sourcepub fn to_owned_message(&self) -> ModelVersion
pub fn to_owned_message(&self) -> ModelVersion
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 model_name(&self) -> &str
pub fn model_name(&self) -> &str
Name of the parent registered model, relative to parent schema.
Field 1: model_name
Sourcepub fn catalog_name(&self) -> &str
pub fn catalog_name(&self) -> &str
Name of parent catalog.
Field 2: catalog_name
Sourcepub fn schema_name(&self) -> &str
pub fn schema_name(&self) -> &str
Name of parent schema.
Field 3: schema_name
Sourcepub fn version(&self) -> i64
pub fn version(&self) -> i64
Integer model version number, used to reference the model version in API requests. Assigned by the server, monotonically increasing per model.
Field 4: version
Sourcepub fn source(&self) -> &str
pub fn source(&self) -> &str
URI indicating the location of the source artifacts used to create the model version.
Field 5: source
Sourcepub fn run_id(&self) -> Option<&str>
pub fn run_id(&self) -> Option<&str>
The run id used by the ML package that generated this model.
Field 6: run_id
Sourcepub fn status(&self) -> EnumValue<ModelVersionStatus>
pub fn status(&self) -> EnumValue<ModelVersionStatus>
Current status of the model version.
Field 7: status
Sourcepub fn storage_location(&self) -> Option<&str>
pub fn storage_location(&self) -> Option<&str>
The storage location under which the model version’s artifacts are stored.
Field 8: storage_location
Sourcepub fn comment(&self) -> Option<&str>
pub fn comment(&self) -> Option<&str>
User-provided free-form text description.
Field 9: comment
Sourcepub fn created_at(&self) -> Option<i64>
pub fn created_at(&self) -> Option<i64>
Time at which this model version was created, in epoch milliseconds.
Field 1000: created_at
Sourcepub fn created_by(&self) -> Option<&str>
pub fn created_by(&self) -> Option<&str>
Username of model version creator.
Field 1001: created_by
Sourcepub fn updated_at(&self) -> Option<i64>
pub fn updated_at(&self) -> Option<i64>
Time at which this model version was last updated, in epoch milliseconds.
Field 1002: updated_at
Sourcepub fn updated_by(&self) -> Option<&str>
pub fn updated_by(&self) -> Option<&str>
Username of user who last modified the model version.
Field 1003: updated_by
Sourcepub fn metastore_id(&self) -> Option<&str>
pub fn metastore_id(&self) -> Option<&str>
The unique identifier of the metastore.
Field 1004: metastore_id
Sourcepub fn browse_only(&self) -> Option<bool>
pub fn browse_only(&self) -> Option<bool>
Indicates whether the principal is limited to retrieving metadata for the associated object through the BROWSE privilege when include_browse is enabled in the request.
Field 1005: browse_only
Trait Implementations§
Source§impl AsRef<OwnedView<ModelVersionView<'static>>> for ModelVersionOwnedView
impl AsRef<OwnedView<ModelVersionView<'static>>> for ModelVersionOwnedView
Source§fn as_ref(&self) -> &OwnedView<ModelVersionView<'static>>
fn as_ref(&self) -> &OwnedView<ModelVersionView<'static>>
Source§impl Clone for ModelVersionOwnedView
impl Clone for ModelVersionOwnedView
Source§fn clone(&self) -> ModelVersionOwnedView
fn clone(&self) -> ModelVersionOwnedView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more