#[non_exhaustive]pub struct FeatureViewDirectWriteResponse {
pub status: Option<Status>,
pub write_responses: Vec<WriteResponse>,
/* private fields */
}feature-online-store-service only.Expand description
Response message for [FeatureOnlineStoreService.FeatureViewDirectWrite][google.cloud.aiplatform.v1.FeatureOnlineStoreService.FeatureViewDirectWrite].
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: Option<Status>Response status for the keys listed in FeatureViewDirectWriteResponse.write_responses.
The error only applies to the listed data keys - the stream will remain open for further [FeatureOnlineStoreService.FeatureViewDirectWriteRequest][] requests.
Partial failures (e.g. if the first 10 keys of a request fail, but the rest succeed) from a single request may result in multiple responses - there will be one response for the successful request keys and one response for the failing request keys.
write_responses: Vec<WriteResponse>Details about write for each key. If status is not OK, WriteResponse.data_key will have the key with error, but WriteResponse.online_store_write_time will not be present.
Implementations§
Source§impl FeatureViewDirectWriteResponse
impl FeatureViewDirectWriteResponse
pub fn new() -> Self
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Sourcepub fn set_write_responses<T, V>(self, v: T) -> Self
pub fn set_write_responses<T, V>(self, v: T) -> Self
Sets the value of write_responses.
§Example
use google_cloud_aiplatform_v1::model::feature_view_direct_write_response::WriteResponse;
let x = FeatureViewDirectWriteResponse::new()
.set_write_responses([
WriteResponse::default()/* use setters */,
WriteResponse::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for FeatureViewDirectWriteResponse
impl Clone for FeatureViewDirectWriteResponse
Source§fn clone(&self) -> FeatureViewDirectWriteResponse
fn clone(&self) -> FeatureViewDirectWriteResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for FeatureViewDirectWriteResponse
impl Default for FeatureViewDirectWriteResponse
Source§fn default() -> FeatureViewDirectWriteResponse
fn default() -> FeatureViewDirectWriteResponse
Source§impl PartialEq for FeatureViewDirectWriteResponse
impl PartialEq for FeatureViewDirectWriteResponse
Source§fn eq(&self, other: &FeatureViewDirectWriteResponse) -> bool
fn eq(&self, other: &FeatureViewDirectWriteResponse) -> bool
self and other values to be equal, and is used by ==.